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.
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
% % Plotting data from the .mat file
data = load('THPWM.mat')
sCell = struct2cell(data);
Array = [sCell{:}];
t= Array(:,1);
x= Array(:,2);
plot(t,x);
2 commentaires
Réponse acceptée
darova
le 15 Août 2021
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)
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!