How to operate a function on matrix
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Dear all, I want to operate a function on matrix elements. How to do it? See the attached file.
Answers (1)
Abdolkarim Mohammadi
on 26 Aug 2020
Edited: Abdolkarim Mohammadi
on 26 Aug 2020
0 votes
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 Comment
Rajkumar Verma
on 26 Aug 2020
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!