Borrar filtros
Borrar filtros

how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Walter Roberson
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.
  4 comentarios
Walter Roberson
Walter Roberson el 28 de En. de 2024
Looks like the exercise wanted some different scaling. Perhaps multiplying by 173, or dividing by 32768...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by