How do I plot different fields of a structure in a loop?
Mostra commenti meno recenti
Hi all.
I'm very new to Matlab and I'm trying to create a loop that plots everything between these 2 lines of code:
scatter(MCR_full.MIB035.Reaches.R32.kin(:,1),MCR_full.MIB035.Reaches.R32.kin(:,3))
scatter(MCR_full.MIB035.Reaches.R42.kin(:,1),MCR_full.MIB035.Reaches.R42.kin(:,3))
so it would plot the following
scatter(MCR_full.MIB035.Reaches.R32.kin(:,1),MCR_full.MIB035.Reaches.R32.kin(:,3))
scatter(MCR_full.MIB035.Reaches.R33.kin(:,1),MCR_full.MIB035.Reaches.R33.kin(:,3))
scatter(MCR_full.MIB035.Reaches.R34.kin(:,1),MCR_full.MIB035.Reaches.R34.kin(:,3))
and so on all the way to
scatter(MCR_full.MIB035.Reaches.R42.kin(:,1),MCR_full.MIB035.Reaches.R42.kin(:,3))
all in the same plot. The RNN field name changes with each call to scatter.
Any help with this would be fantastic thanks so much
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Performance and Memory in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

