plotting cells from arrays
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
this is my codes. thething is my arrays contain cells. After I run the scripts, the plot just show nothing on it. Please tell me what's wrong with my code?
8 Commenti
Stephen23
il 28 Giu 2018
@Kuang-Yu WANG: please upload your data in a .mat file by clicking the paperclip button.
Risposte (1)
KSSV
il 27 Giu 2018
figure
hold on
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
4 Commenti
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!