フィルターのクリア

How to list top 3

2 ビュー (過去 30 日間)
Phudit Kanittasut
Phudit Kanittasut 2021 年 4 月 27 日
コメント済み: Jan 2021 年 4 月 28 日
Hello
I want help
Data = readmatrix('brain_liver.csv');
%normalization
for i = 1:12
Datanorm(:,i) = Data(:,i) .* 100/max(Data(:,i));
end
S = std(Datanorm,[],2);
%dimension
Max = maxk(S,3);
%Index from 3 tops
% Line : 12 30 44
From my code I find S from data norm and list top 3 in Max
I want to list top 3 in datanorm ranking from S
How can I do that
Thx

採用された回答

Jan
Jan 2021 年 4 月 27 日
Data = readmatrix('brain_liver.csv');
Datanorm = Data .* 100 ./ max(Data, 1);
S = std(Datanorm,[],2);
[Max, MaxIndex] = maxk(S,3)
  4 件のコメント
Phudit Kanittasut
Phudit Kanittasut 2021 年 4 月 27 日
MaxIndex is show the row of the data which I need So I want to show only the Datanorm value only from Maxindex value
Jan
Jan 2021 年 4 月 28 日
I do not understand, what these screenshots should tell. You have a matrix and the indices. Then why does indexing the matrix not solve the problem? What exatcly does "only the Datanorm value only from Maxindex value" mean? Can you give a small example?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by