simulink matrix and vector creation

조회 수: 130 (최근 30일)
Mary
Mary 2011년 7월 1일
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.

채택된 답변

Paulo Silva
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
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]
Paulo Silva
Paulo Silva 2011년 7월 1일
Also take a look at this blog http://blogs.mathworks.com/seth/

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by