how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
11 views (last 30 days)
Show older comments
Muhammad Umar Khan
on 25 Jan 2024
Commented: Stephen23
on 25 Aug 2024
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 Comments
Accepted Answer
Walter Roberson
on 25 Jan 2024
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 Comments
Stephen23
on 25 Aug 2024
"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.
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!