how can we do this?

7 views (last 30 days)
diadalina
diadalina on 29 Nov 2018
Edited: diadalina on 4 Dec 2018
i want to calculate the maximum of vectors éléments and its position using the diff command, can any one help me ?
  2 Comments
diadalina
diadalina on 29 Nov 2018
it is another way to calculate the max ?

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 29 Nov 2018
[value,index]=max(vector) %use max which does exactly what you want
  7 Comments
diadalina
diadalina on 4 Dec 2018
thank you mr Jan, now it is clear for me.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by