MATLAB Answers


How to import the array format values in simulink one by one?

Asked by Arun Badigannavar on 25 Feb 2013
Accepted Answer by TAB I want to import data of array in to my model,,,in the above link i am importing three values to simulink block,,,but rather i want to import like a(1,1)for first time calculation a(1,2) for second time,,like this i want to import rather importing a,, how to do this?


Please help me out

on 25 Feb 2013

What do you mean by import for first time calculation. Is it mean for 1st sample time ?

No,,,I mean *Import for first time mean that*I want a (1)for one time simulation based on some condition,,,second time if i want to do simulation it should take a value based on some logic which i have



No products are associated with this question.

1 Answer

Answer by TAB
on 25 Feb 2013
 Accepted answer

You can use Signal Routing/Index Vector block to select the elements of array.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!