필터 지우기
필터 지우기

Normalize data set

조회 수: 3 (최근 30일)
Niles Martinsen
Niles Martinsen 2012년 5월 13일
Hi
I have a data set giving me (time, voltage), and I wish to normalize the data set. Is there a smart way to do this in MatLAB?
Also, is there a way to integrate such a data set?
Best wishes amd thanks for any help, Niles.

답변 (2개)

bym
bym 2012년 5월 13일
v = rand(1,100); %invent data
t = linspace(1,10,100);
vn = v./max(v); %normalize
integral = trapz(t,vn);

Image Analyst
Image Analyst 2012년 5월 13일
Depends on how you define integrate. Maybe you want sum(data(:)), then to normalize
normalizedData = data ./ sum(data(:));
Or you can divide by the max of the data instead of the sum of it all, depending on how you define normalize. There are different definitions you know. What's yours?

카테고리

Help CenterFile Exchange에서 Predictive Maintenance Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by