필터 지우기
필터 지우기

how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data

조회 수: 2 (최근 30일)
how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
Actually i am writing a matlab code for training in Matlan onramp and didn't getting how to solve the above

채택된 답변

Walter Roberson
Walter Roberson 2024년 1월 25일
Given only the above information:
function scaled = scale(data)
scaled = data ./ 1000;
end
The 1000 should be adjusted to whatever is appropriate for your situation.
  댓글 수: 4
Walter Roberson
Walter Roberson 2024년 1월 28일
Looks like the exercise wanted some different scaling. Perhaps multiplying by 173, or dividing by 32768...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by