How i can map data axis (x,y) ->(10x10) area to a large (100x100) area?
Mostrar comentarios más antiguos
I have a data set in the range of (x[0 10], y[0 10]) so i want to plot this data in the area of 100x100 so that It can give a larger view of the data set. I want to expand this with respect to data ? how i can do this ? Need your guidance.

Respuestas (1)
You don't need to change your data, just change the axes limits to zoom into the data that you want to see. Try something like this:
xlim([0,10])
ylim([0,10])
There are plenty of options, so read the documentation too:
EDIT: multiply the data by 10. This seems to be what the OP is wanting to do.
5 comentarios
Arsal15
el 26 de En. de 2016
Not clear, I am afraid. Why exactly does setting the axis limits not work ?
Why do you want to change your data, as opposed to just fitting the axes?
What does "But it is limiting my plot to this axis" mean?
"I have date for x and y position for 5 different mobile robots" so plot it, and the axes will scale themselves to fit your data. You do not need to change the data, and this would normally not be a good way to program.
How did you generate the figure in your question?
Image Analyst
el 26 de En. de 2016
Not sure what "limiting my plot to this axis." means. It should "zoom" your plot in so that the 0-10 range will now take up the same real estate on your screen that the old 0-100 range did before. Is that not the case?
Arsal15
el 26 de En. de 2016
Stephen23
el 27 de En. de 2016
The obvious answer is to multiply your X and Y values by 10. But it still seems rather bizarre to prefer to change the data rather than simply zoom the axes.
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
