
How can i load series of structure files ?
    5 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I have Wz stuct which is consist of structs (from w_z1 to w_z1) and each of these struct contain w matrices How can i  to load these matrices as matlab code and make an animation from these matrices contour?


2 件のコメント
  Walter Roberson
      
      
 2020 年 2 月 12 日
				Better would have been a multidimensional array if the entries are all the same size.
採用された回答
  Walter Roberson
      
      
 2020 年 2 月 12 日
        
      編集済み: Walter Roberson
      
      
 2020 年 2 月 12 日
  
      for iter = 1:1000
 fn = sprintf('w_z%d', iter) ;
 w = Wz.(fn).w;
 contour(w);
 drawnow() ;
end
However I would recommend that you pick a fixed set of contour levels and pass that to contour after w, as otherwise the contour levels will vary depending on the dynamic range of the w matrices, making it difficult interpret what you are seeing.
You might want filled contours. You might want a colorbar. If you do a colorbar use caxis() with a fixed range or else the meaning of the colors will depend on the dynamic range of w
その他の回答 (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!