フィルターのクリア

how to avoid writing a script for every input again

2 ビュー (過去 30 日間)
Jaber Gharib
Jaber Gharib 2018 年 3 月 6 日
コメント済み: KSSV 2018 年 3 月 7 日
I have a series of species and I need to get a matrix of each component using a for loop. I have to repeat the code for each species, though it does not seem to be a sensible way. I tried to use for loop to avoid the repetition but the thing is for loop replace the previous ones.
  2 件のコメント
James Tursa
James Tursa 2018 年 3 月 6 日
The general advice here would be to write a function that contains the code common to the processing you need to do.
KSSV
KSSV 2018 年 3 月 7 日
Write your code into a function......call the code and store the value for every loop. Show us your code..we will help you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by