help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plot error


From: Beginner1
Subject: plot error
Date: Tue, 16 Jan 2018 07:30:02 -0700 (MST)

Hi, 

I want to plot 3 signals in the same time domain (x domain). It should have
the following aspect:
<http://octave.1599824.n4.nabble.com/file/t372684/Salida_small_signal.jpg> 

This was the result I obtained last week. However I forgot to save the
updated code in Octave, and though I think these lines should give the same
result:

% input
  subplot(3,1,1)
  plot(t,u_idref)
  ylim([0.7 0.9])
  xlim([0.999 1.02])
  U = [u_Vd u_Vq u_Id u_Iq u_idref u_iqref];
 
  x0=[0;0;0.0024;0;0;0.08482]
  
% Response of the model
 [y,t,x] = lsim(sys,U,Ts,x0)
  subplot(3,1,2)
  plot(t,y(:,1))
  ylim([-200 120])
  xlim([0.999 1.02])
  
  subplot(3,1,3)
  plot(t,y(:,2))
  ylim([-30 10])
  xlim([0.999 1.02])

I only obtain this one:
<http://octave.1599824.n4.nabble.com/file/t372684/last_one.jpg> 

I donĀ“t know why the 2 last figures are not plotted...
Any suggestions?







--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]