how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
9 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!