I imported an image that I made in matlab into markdown in rstudio by using:

However, I looked online and could only find either switching to html <img src="icon.png" width="200">
which doesn't show up on my pdf file, or appending the width and height to the end:
{width=250px}
Just adds the caption of {width=250px} to the end of my image.
Is there any other way I can change the size of the image?