how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Umar Khan
am 25 Jan. 2024
Kommentiert: Muhammad Umar Khan
am 30 Jan. 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 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.
4 Kommentare
Walter Roberson
am 28 Jan. 2024
Looks like the exercise wanted some different scaling. Perhaps multiplying by 173, or dividing by 32768...
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!