フィルターのクリア

performing multiple elementwise operations at the same time

2 ビュー (過去 30 日間)
Muhammad Ridwanur Rahim
Muhammad Ridwanur Rahim 2021 年 4 月 9 日
回答済み: Walter Roberson 2021 年 4 月 9 日
1) i want to perform seperate operations all at once for different elements of a matrix. for example consider the matrix A below. i want to, lets say, add 2 to element 8 and multiply 3 with element 11. and get the final result as B. how to do it in a single line.
2) and also how to do such things with separate rows and columns.
thanks
A= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15; 16 17 18 19 20]
B= A= [1 2 3 4 5; 6 7 10 9 10; 33 12 13 14 15; 16 17 18 19 20]

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 4 月 9 日
You would need the Parallel Computing Toolbox... and a flexible definition of "at the same time".
It is unlikely to be worth the effort to set up.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by