Importing data to simulink

I have some data describing PV output and time. I have created a Mx2 matrix containing the time and PV output and wish to use it in a simulink model, how do use this matrix as a signal in the simulation?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 4 月 9 日

0 投票

Assume your Mx2 matrix is in base workspace and named as "B", use a FromWorkspace block and specify the value as "B". Note that the first column of B is time stpes, the second column is the values of PV output.

製品

リリース

R2018b

質問済み:

2019 年 4 月 9 日

回答済み:

2019 年 4 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by