how to plot 1x1 struct timeseries having field names cell 1x1 array? The .mat file is a time series data with 3 columns of data with respect to time.
15 次查看(过去 30 天)
显示 更早的评论
% % Plotting data from the .mat file
data = load('THPWM.mat')
sCell = struct2cell(data);
Array = [sCell{:}];
t= Array(:,1);
x= Array(:,2);
plot(t,x);
采纳的回答
darova
2021-8-15
Extrac the data and plo
% % Plotting data from the .mat file
data = load('THPWM.mat');
fieldnames(data)
data.ans
x = data.ans.Data(:,1);
y = data.ans.Data(:,2);
z = data.ans.Data(:,3);
plot3(x,y,z)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!