Community Profile

photo

Dermot McCloskey


Aston Uinversity

2014년부터 활동

통계

Content Feed

보기 기준

질문


If i have a random vector, e.g [2 4 3 4 3 4] how would i code a script to give how many times the max value is attained? I know the answer is obviously 3 here but what would the input be for any random vector? Many thanks in advance.
%% QUESTION 2 u=input('Give a vector: ') v=u(2:2:end); disp('The new vector v= ') disp(v) vmin=min(u); disp('Min of u=...

9년 초과 전 | 답변 수: 1 | 0

1

답변