write a function that creates the following matrix

Write a MATLAB loop, write a function that creates the following matrix A and returns the matrix B which is computed from matrix A by relacing all elements greater than 2 with their natural logarithm and subtracting 10 from the remaining elements.A=[2 5 10;-8 -1 8;12 9 2]

1 Commento

You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks). If your main issue is with understanding the underlying concept, you may consider re-reading the material you teacher provided and ask them for further clarification.

Risposte (0)

Questa domanda è chiusa.

Tag

Richiesto:

il 3 Gen 2023

Chiuso:

Rik
il 3 Gen 2023

Community Treasure Hunt

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

Start Hunting!

Translated by