Using data calculated in matlab and stored as an array/1D matrix in Simulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
James Murray
el 1 de Abr. de 2014
Comentada: Azzi Abdelmalek
el 1 de Abr. de 2014
Hi
I am not sure what function block do I need to use an array. I basically have 25 values stored in 1-d matrix or array. I want to use a function block in Simulink that allows me to call upon these value stored under variable named "power". I tried using constant but that didn't work because this has more than one value.
I want to do further multiplication on all the values stored under variable "power" in Simulink during one timestep.
Thanks for the help
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 1 de Abr. de 2014
You can use a constant block, just set the value to, for example
power=[1 2 3 4 5] % in workspace
Inside your block set the value to power
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources 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!