How to use out block value in matlab
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hello,
I develop a code and the output is a vector. I am adding a picture that can be easier to understand. I would like to export this vector in MATLAB to plot a graphic. I found this command: plot(x,voltage.signals.values,'linewi',2) I didn't understand how does it work. Could someone help me?

0 Kommentare
Akzeptierte Antwort
  ES
      
 am 22 Mär. 2017
        1. You can directly add a scope on the line joining the block.
2. You can log the data flowing through the line. At the end of the simulation you can access this data and do a plot. see here http://in.mathworks.com/help/simulink/ug/configuring-a-signal-for-signal-logging.html
2 Kommentare
  ES
      
 am 22 Mär. 2017
				Yes. you can log the data and access it from workspace as explained in the link above. Once its able to be access, you can plot it in the same way.
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


