how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad Umar Khan
le 25 Jan 2024
Commenté : Stephen23
le 25 Août 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 commentaires
Réponse acceptée
Walter Roberson
le 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 commentaires
Stephen23
le 25 Août 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!