how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
조회 수: 10 (최근 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
댓글 수: 0
채택된 답변
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.
댓글 수: 5
Stephen23
2024년 8월 25일
"Actually i am writing a matlab code for training in Matlan onramp and didn't getting how to solve the above"
The linked page already tells you the complete content of the SCALE function and exactly where to write it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!