hi , every one , can i find help to do this , thank you

1) how can i make a plot like this ( i need only the plot with the yellow line )
2) if i have a file.fig and i need to integrate it in a script matlab to put it with another figure on the same plot
Immagine.png

7 comentarios

dpb
dpb el 7 de Jun. de 2019
So, is the figure shown the .fig file content? Or, where did the yellow line shown come from? If you have the figure, what's the problem in retrieving the X|YData from it?
mina massoud
mina massoud el 7 de Jun. de 2019
thank you for responding on my questions
i did a mistake when i write , i mean without the yellow line to know only how to design this plot for other problem
i find on internet this commando to upload a figure in a script matlab
h1 = openfig('Fairpartner_AIS[4321].fig','reuse');
but my question how can i design a quadratic scale plot like the figure that i attach it on this page
thank you again for yuor time
have a nice weekend
I do not see a "quadratic scale plot" ?
xlim([-500 500]);
xtick(-500:250:500);
ylim([0 2000]);
ytick(0:250:2000);
xlabel('y-axis [m]');
ylabel('x-axis [m]');
dpb
dpb el 7 de Jun. de 2019
Editada: dpb el 7 de Jun. de 2019
I guess I don't follow what is "a quadratic scale plot" in the sense of the question. You can build that base plot by
hAx=axes;
view([90 90])
hAx.YLim=[-500 500];
hAx.YTick=[-250:250:500];
hAx.XLim=[0 2000];
hAx.XTick=[0:250:2000];
hAx.XDir='reverse';
box on; grid on
xlabel('X')
ylabel('Y')
presuming the x- and y- axes really are reversed and not just labelled in reverse postions as normal.
mina massoud
mina massoud el 7 de Jun. de 2019
thank you
XDir reverse would be for high x values down to low x values, which is not the case in this plot.
The x and y axes labels are exchanged
dpb
dpb el 7 de Jun. de 2019
That's a fignewton of the orientation when swap the axes, Walter...then you have to flip XDir to return to the expected direction visually when it's in the normal y-axis location.
Give it a try... :)

Respuestas (0)

La pregunta está cerrada.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 7 de Jun. de 2019

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by