Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how to show all the single in my legend

1 visualizzazione (ultimi 30 giorni)
areej abdulshaheed
areej abdulshaheed il 15 Apr 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commenti
madhan ravi
madhan ravi il 15 Apr 2019
Modificato: madhan ravi il 15 Apr 2019
Upload your code(just the legend part)
areej abdulshaheed
areej abdulshaheed il 15 Apr 2019
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')

Risposte (1)

areej abdulshaheed
areej abdulshaheed il 15 Apr 2019
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')

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by