How to operate a function on matrix

Dear all, I want to operate a function on matrix elements. How to do it? See the attached file.

回答 (1 件)

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020 年 8 月 26 日
編集済み: Abdolkarim Mohammadi 2020 年 8 月 26 日

0 投票

Assuming this is your homework assignment, I can only give you the clue that you can use logical indexing.
https://www.mathworks.com/help/matlab/matlab_prog/find-array-elements-that-meet-a-condition.html

1 件のコメント

Rajkumar Verma
Rajkumar Verma 2020 年 8 月 26 日
This is not a homework assignment. I have already done it.
Thanks for you kind suggestions.

この質問は閉じられています。

製品

タグ

質問済み:

2020 年 8 月 26 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by