필터 지우기
필터 지우기

Plot 2 Vectors as a X and Y graph

조회 수: 9 (최근 30일)
Marcelo Boldt
Marcelo Boldt 2020년 10월 9일
댓글: Ameer Hamza 2020년 10월 9일
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!

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 9일
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
Marcelo Boldt
Marcelo Boldt 2020년 10월 9일
yes, I found my mistake! Thanks for your quick answer
Ameer Hamza
Ameer Hamza 2020년 10월 9일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by