Statistics
1 Question
0 Answers
RANK
140,764
of 289,945
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 19,611
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 144,330
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
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 years ago | 1 answer | 0