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.

Risposte (1)

Abdolkarim Mohammadi
Abdolkarim Mohammadi il 26 Ago 2020
Modificato: Abdolkarim Mohammadi il 26 Ago 2020

0 voti

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 Commento

This is not a homework assignment. I have already done it.
Thanks for you kind suggestions.

Questa domanda è chiusa.

Prodotti

Tag

Richiesto:

il 26 Ago 2020

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by