Import Values from Excel Sheet to Simulink Subsystem Constant Block

Hello everyone,
I have an Excel Sheet which I imported to Matlab and I'm trying to set the Values of th Excel Sheet from Matlab to Simulink.
I have a Costant Block for each value in a Simulink Subsystem.
I have an array for each column. I want to put o to first constan, 2 to second ....

Antworten (1)

Benjamin Thompson
Benjamin Thompson am 16 Feb. 2022

0 Stimmen

You can use one constant block to create a vector of numbers.

1 Kommentar

Thanks for the answer. I named the constant block and then used setparam()

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Version

R2018a

Gefragt:

am 16 Feb. 2022

Kommentiert:

am 19 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by