![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1272725/image.bmp)
Replacing specific block with subsystems
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Anubhav Routray
el 24 de En. de 2023
Comentada: Anubhav Routray
el 13 de Mzo. de 2023
I want to replace all the 'Memoey ' blocks in a model with a subsystem which would have the functionality of 'Memory' block. But the initial condition to the 'Memory' block should be passed from From workspace block as the initial conditions are changed frequently. I have the initial conditions stored in an array. Any help is appreciated. I am using MATLAB 2020a
0 comentarios
Respuesta aceptada
Benjamin Thompson
el 24 de En. de 2023
Here is one way. I think you would just use a constant block rather than From Workspace because From Workspace is looking to use a time sampled array or table, something like that.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1272725/image.bmp)
5 comentarios
Benjamin Thompson
el 25 de En. de 2023
After the first update, a memory block would make the output equal to input. This is what "initial condition" means. Or you may find that the Delay block is a better behavior, since it should be that output is delayed one step from the current input. You may experiment.
I do not know whether the From Workspace block can do what you want. Here is a link with more information.
Más respuestas (0)
Ver también
Categorías
Más información sobre Schedule Model Components 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!