how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad Umar Khan
el 25 de En. de 2024
Comentada: Stephen23
el 25 de Ag. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 25 de En. de 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 comentarios
Stephen23
el 25 de Ag. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!