Remove outliers in matlab 2018a
6 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a matrix contains 5 columns,
I want to remove the outliers from the 5th column using matlab 2018a and then same should be removed from the other four columns also
Now i am using
dset = Final_roti ; %data with 5 columns
dataout = removeoutliers(dset(:,5));
dset(dataout)= []; % this is not working
please help me out from this problem
2 件のコメント
採用された回答
Matt J
2022 年 6 月 4 日
編集済み: Matt J
2022 年 6 月 4 日
Perhaps as follows:
A=repmat((1:5)',1,5); A(end-1)=100,
tf=isoutlier(A(:,5));
A(tf,:)=[]
4 件のコメント
Steven Lord
2022 年 6 月 4 日
What does "does not work" mean in this context?
- Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
Please show us a small sample of data, show us what steps you perform to try to remove outliers from that data set, show us the results you received, and tell us what results you expected to receive and why. And no, your original message is not sufficient for this purpose; we have no idea what data your Final_roti variable contains.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!