MATLAB ヘルプ センター
Find logged data set
data = find(sim_obj,data_name)
data = find(sim_obj,data_name) searches for an element with a specific name in the LoggedData property of sim_obj. Use the who function of the sdo.SimulationTest object to find possible names.
data
sim_obj
data_name
LoggedData
who
sdo.SimulationTest
example
collapse all
Log model signals.
Pressures = Simulink.SimulationData.SignalLoggingInfo; Pressures.BlockPath = 'sdoHydraulicCylinder/Cylinder Assembly'; Pressures.OutputPortIndex = 1; simulator = sdo.SimulationTest('sdoHydraulicCylinder'); simulator.LoggingInfo.Signals = Pressures;
Run a simulation.
sim = sim(simulator);
Search for logged data.
sim_log = find(simulator,'sdoHydraulicCylinder');
Simulation scenario for a model, specified as an sdo.SimulationTest object.
Data set name to search for, specified as a character vector or string scalar.
Data Types: char | string
char
string
Logged simulation data for the data set name specified by data_name input, returned as a cell array.
Introduced in R2011b
sdo.optimize | sim | setup | restore | who
sdo.optimize
sim
setup
restore
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ