how to extract data in the structure to individual vector variable?
显示 更早的评论
i have 1x1 data obtained from time vs signal graph. i want to separate time and signal and assign them into different varable.
2 个评论
Walter Roberson
2016-2-18
Which routine did you call to obtain your data?
sivalogan satchithanandamoorthy
2016-2-18
回答(1 个)
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 个评论
sivalogan satchithanandamoorthy
2016-2-18
Jonathan Duncan
2017-10-6
if you wanted to extract more than 1 value how would you do that ?
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!