plotting a simple Graph
이전 댓글 표시
Hi everyone,
Trying to plot a graph unsucssesfully :((
alpha=2.2;
Mx0=34.8262;
My0=15.7563;
Mx=linspace(0,50,0.0001);
Interaction_Curve=(Mx./Mx0).^alpha+(My./My0).^alpha-1
plot(Interaction_Curve,Mx)

Thank You Very much
댓글 수: 2
madhan ravi
2019년 12월 24일
You didn’t define My and you haven’t used the linspace() properly for Mx.
Shimon Katzman
2019년 12월 24일
편집: Shimon Katzman
2019년 12월 24일
채택된 답변
추가 답변 (1개)
Image Analyst
2019년 12월 24일
Try this:
alpha = 2.2;
Mx0 = 34.8262;
My0 = 15.7563;
Mx = linspace(0,50, 1000);
My = linspace(0,50, 1000); % Not sure what My should be!!!
Interaction_Curve = (Mx./Mx0).^alpha+(My./My0).^alpha-1
plot(Mx, Interaction_Curve, 'b-', 'LineWidth', 2)
grid on;
Be sure to define My because I just guessed incorrectly.
댓글 수: 2
Shimon Katzman
2019년 12월 24일
Image Analyst
2019년 12월 24일
I know. Because I don't have the value of the My variable. That's why I asked you to define it. What is it? But doesn't matter since it looks like Star figured it out.
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
