How to import pp datastructure into simulink model

3 ビュー (過去 30 日間)
Avinash Siravuru
Avinash Siravuru 2013 年 5 月 29 日
I have some data in the form a mat file in my workspace. The data is the mat file is arranged as columns of x,y1,y2,y3,y4 where each column has n datapoints each. I need 4 splines , one each for y1,y2,y3 and y4 resply wrt x. I need to use that generated spline function( pp datastructure) in Simulink to perform a co-simulation with another dynamic simulator. Can somebody help me figure out how this can be done? Thanks in advance.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 5 月 29 日
In general, Simulink only supports numeric signals, so there is no direct way to import complex datatypes (other than MATLAB structures with all numeric fields). Which block do you plan to use to use the spline function? I would presume that you need it as a block parameter, rather than as an input signal.

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by