![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/375756/image.png)
Plot 2 Vectors as a X and Y graph
조회 수: 24 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
채택된 답변
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/375756/image.png)
What do you expect the output to look liks?
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!