統計
MATLAB Answers
1 質問
0 回答
ランク
of 171,413
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
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=...
約11年 前 | 1 件の回答 | 0