MATLAB Answers

at which piont i have the minimum value

조회 수: 3(최근 30일)
hassan alolaiwee
hassan alolaiwee 13 Nov 2019
Answered: Fangjun Jiang 13 Nov 2019
hello,
if i have
i= pi/2:pi/4:pi;
z = sin(i)
t = max(z)
the matlab will give me
z = [1,0.707106781186548,1.224646799147353e-16]
t = 1
so, at i = pi/2 , t has the max value
so, the question is: how to mke matlab give me the point that has the max value?which is in previous example pi/2
thank you

  댓글 수: 0

로그인 to comment.

답변 수 (1)

Fangjun Jiang
Fangjun Jiang 13 Nov 2019
[t,index]=max(z);
value=i(index)

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by