Plot 2 Vectors as a X and Y graph

30 visualizaciones (últimos 30 días)
Marcelo Boldt
Marcelo Boldt el 9 de Oct. de 2020
Comentada: Ameer Hamza el 9 de Oct. de 2020
Hello all,
I have the following two vectors (Bending Moment and Meridian s) both 86x1 dimension and I want to plot Bending Moment as a function of Meridian s.
I did the following thing but I am not getting good results:
figure(3)
plot (Meridian_s(1,:),M_plot(1,:),'-xm')
ylabel('M [Nmm/mm]')
xlabel ('Meridian Coordinate S [mm]')
title('Bending Flux ')
How would you do it?
Thanks!

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 9 de Oct. de 2020
First, there are mistakes in your code considering the variables you shared
figure()
ax = axes();
plot(Meridian_s, M,'-xm')
ylabel('M [Nmm/mm]')
xlabel ('Meridian Coordinate S [mm]')
title('Bending Flux ')
The output looks like this
What do you expect the output to look liks?
  2 comentarios
Marcelo Boldt
Marcelo Boldt el 9 de Oct. de 2020
yes, I found my mistake! Thanks for your quick answer
Ameer Hamza
Ameer Hamza el 9 de Oct. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by