変数名が連続的なときのfor文を用いたプロット
이전 댓글 표시
変数名がO1,O2,O3,...とOのあとの数字が連続的になっているとき,for文を用いてプロットすることはできるでしょうか。
evalを用いればできるのではないかと思うのですが,O1,O2,O3が行列の場合,どのようにプロットしたい箇所を指定すればよいのか
分かりません。
宜しくお願い致します。
댓글 수: 1
madhan ravi
2020년 9월 3일
This is why naming variables is a bad idea. Look https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!