how to extract data in the structure to individual vector variable?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sivalogan satchithanandamoorthy
am 18 Feb. 2016
Kommentiert: Jonathan Duncan
am 6 Okt. 2017
i have 1x1 data obtained from time vs signal graph. i want to separate time and signal and assign them into different varable.
2 Kommentare
Antworten (1)
Moe_2015
am 18 Feb. 2016
Bearbeitet: Moe_2015
am 18 Feb. 2016
This should be pretty straight forward. You can do this:
%Assuming a structure name of Structure
Time=Structure.time;
Signal=Structure.signal;
EDIT: I realized that this might be some data you're getting from simulink as a structure with time from the way you phrased it. So it would be something like this:
Time=simout.time;
Signal=simout.signals.values;
3 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!