フィルターのクリア

How to read non-signal .mat data in Simulink Function Block

1 回表示 (過去 30 日間)
Sander Hermanussen
Sander Hermanussen 2015 年 5 月 28 日
回答済み: Azzi Abdelmalek 2015 年 5 月 28 日
I'm trying to create a simulink model, where a controller will make a system go to certain coordinates. If the error is sufficiently small, I want to select the next coordinate. The list of coordinates is fairly long, so I stored it in a .mat file (this way, it's also easy to select another set of coordinates). I figured the best (least complex) way to accomplish this is a Matlab Function Block.
However, in such a function block, using
'coordinates=load('myfile')'
is not allowed (which makes sense, who wants to load a file 4096 times per second?), but a MATLAB 'from file' block will only feed a signal in time, not an array of time-independent variables. How can I still accomplish to get an array loaded into my Function Block?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 5 月 28 日

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by