フィルターのクリア

ask to change input values and derive a new matrix

1 回表示 (過去 30 日間)
JL
JL 2019 年 8 月 9 日
コメント済み: JL 2019 年 8 月 9 日
I have W, and I want to be asked if I want to change any of the numbers in W(1,1), W(2,1), W(3,1), and W(4,1).
W =
[2;
3;
4;
2;];
If let say, I've been asked to change them, I would like to input W(1,1) = 1, W(2,1) =2, W(3,1)=3, and W(4,1)=4.
and my new W will have the following values
W=
[1;
2;
3;
4;];

採用された回答

madhan ravi
madhan ravi 2019 年 8 月 9 日
編集済み: madhan ravi 2019 年 8 月 9 日
I was blind sided in your previous question (because some of your questions were a bit advanced), but you seem to be asking the basic questions in MATLAB. I suggest you to read one of my favourite articles:
and when you have a doubt about a certain function for instance sub2ind() go to command window and type
doc sub2ind
help sub2ind
  2 件のコメント
JL
JL 2019 年 8 月 9 日
Thanks for the article, I got what I needed.
JL
JL 2019 年 8 月 9 日
Ah yes, it has been a while since I last used matlab,hence, you get a range of questions. I have another question, and was wondering you can help? https://uk.mathworks.com/matlabcentral/answers/475547-list-combinations-and-count-how-many-it-appears

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by