Effacer les filtres
Effacer les filtres

simulink matrix and vector creation

95 vues (au cours des 30 derniers jours)
Mary
Mary le 1 Juil 2011
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.

Réponse acceptée

Paulo Silva
Paulo Silva le 1 Juil 2011
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 commentaires
Paulo Silva
Paulo Silva le 1 Juil 2011
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 le 1 Juil 2011
Also take a look at this blog http://blogs.mathworks.com/seth/

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by