simulink matrix and vector creation
130 次查看(过去 30 天)
显示 更早的评论
hi guys,I am new in matlab and simulink. can you help me to create a matrix and vector block in simulink. your help is highly appriciated.
0 个评论
采纳的回答
Paulo Silva
2011-7-1
The constant block can create vectors, the mux block can turn each vector input in a row of the output array.
You can also make vectors and arrays in the workspace and import them to simulink
3 个评论
Paulo Silva
2011-7-1
It depends if your values change with time, if not time dependent just put do the same code like in the workspace inside the Constant block value, example 1:10
If they are time dependent it not that easy, make them in the workspace and use the FromWorkpace block to import them
Ts=0.01;
t=1:Ts:10;
v=rand(1,numel(t));
VToImport=[t;v]
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!