How to enlarge image in inpolygon?

לק"י
Hi guys,
I use inpolygon command and I can't enlarge the image which I need to draw the polygon on. the magnidication button is grey. I'm adding an image to show you.
thanks!

7 Comments

Can you explain more. I don't get
use xlim() and ylim(). You may also want to see aspect ratio ("axis equal").
לק"י
Hi adam, thanks!
I did use the xlimand ylim, but somewhy it does not limit the axis. I followed the technical page.
This is the code:
figure(1)
scatter(xnm,ynm, 1, 'filled')
xlim=([1.5*10^4 2.8*10^4])
ylim=([1.2*10^4 2.6*10^4])
and when I run it, it doesn't limit them.
Thanks!
לק"י
Hi davora! I seen your comment jsut now. I just want to do inpolygon in specific very small part of the image with high accuracy contour. for that I need to enlarge the image like, which I can't (the magnification button is not active, its grey). have I managed to explain myself better?
Thanks!
Use xlim([1.5*10^4 2.8*10^4]) instead (without the =).
לק"י
Hi rik, thanks!
I used it in 2 variations and got this errors:
I think the matrix sshould be o.k because there are only 2 objects per vector.
Please, if you can, can you explain me what went wrong and why? I would like to learn for the next time to deal with these kind of problems.
Thank you very very much!
לק"י
well I found out it was because xlim and ylim were defined previously as variables. i delted them and put it in the correct place and it worked. thanks you all!!

Sign in to comment.

Answers (0)

Categories

Asked:

on 18 Aug 2021

Commented:

on 19 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!