How to normalize data?
조회 수: 25 (최근 30일)
이전 댓글 표시
Hi;
I have a txt file with two columns. I want to normalize the second y column to 1. How can I plot the normalized y axis vs. x axis?
I also upload the .txt file.
Could you please how can I write the Matlab code to plot a normalized graphic?
Thanks a lot..
댓글 수: 1
dpb
2021년 6월 8일
Well, let's first define what your defnition of "normalize to 1" is...
are three Answers that might be of interest, too...
답변 (2개)
Christopher McCausland
2021년 6월 8일
Hi Seval,
Normalising data has several diffrent meanings statistically speaking. I am guessing given the mention of the Y column, you wish to scale your data between 0 and 1.
There are several diffrent methods to do this;
- Rescale
- Divide the entire column by the largest elemental value in the column provided this data is from 0-X.
Let me know if this is what you are looking for or a diffrent satisitcal meaning or normilisation.
Christopher
댓글 수: 0
SEVAL DONERTAS
2021년 6월 8일
댓글 수: 1
dpb
2021년 6월 8일
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html
Just give it a go; it's pretty simple and you'll be done while waiting for somebody else to do it for you....and have learned something alongst the way... :)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!