How would it be possible to set the length of the input signal for Matlab function block?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I have used a step block (in simulink) as the input provider for a (embedded) matlab function block.
Inside the editor of the matlab function block, there is a condition which make following trouble,
every time I run the simulink model, an error message occur which say that:
" number of rows of the input signal (step function) is not equal to 50 "
-it should be noted, I am aware that it is a user defined error-
but my problem is,
I don't know how to adapt the length of input signal (step block) to the specified number (50).
Sincerely Yours,
Sahand Radmanesh
0 comentarios
Respuesta aceptada
Kaustubha Govind
el 13 de Nov. de 2012
Set the Initial Value of the Step block to zeros(1,50) and its Final Value to ones(1,50) to have it produce a signal of length 50.
2 comentarios
Kaustubha Govind
el 15 de Nov. de 2012
You probably need to turn off the "Interpret as 1-D" checkbox on the dialog of the Step block.
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!