フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to show all the single in my legend

1 回表示 (過去 30 日間)
areej abdulshaheed
areej abdulshaheed 2019 年 4 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have problem with my legend. it hide some of data. I don't know why
can anyone help me to fix this problem
legend problem.png
  2 件のコメント
madhan ravi
madhan ravi 2019 年 4 月 15 日
編集済み: madhan ravi 2019 年 4 月 15 日
Upload your code(just the legend part)
areej abdulshaheed
areej abdulshaheed 2019 年 4 月 15 日
s0=[zeros(1,9) 1 zeros(1,34)]
tspan=(0:0.1:50);
options=odeset('absTol',[1e-10]);
[t,s]=ode15s(@matg,tspan,s0,options);
Q1=s(:,1); Q2=s(:,2); Q3=s(:,3);
Q4=s(:,4); Q7=s(:,7);
subplot 221
plot(t,Q1,'--',t,Q4,'.-',t,Q7)
xlabel('time'), ylabel('joint angle [rad]')
legend('\phi1','\phi4','\phi7')

回答 (1 件)

areej abdulshaheed
areej abdulshaheed 2019 年 4 月 15 日
these my codes
s0=[zeros(1,9) 1 zeros(1,34)]
tspan=(0:0.1:50);
options=odeset('absTol',[1e-10]);
[t,s]=ode15s(@matg,tspan,s0,options);
Q1=s(:,1); Q2=s(:,2); Q3=s(:,3);
Q4=s(:,4); Q7=s(:,7);
subplot 221
plot(t,Q1,'--',t,Q4,'.-',t,Q7)
xlabel('time'), ylabel('joint angle [rad]')
legend('\phi1','\phi4','\phi7')

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by