How would I implement the following programatically instead of using evalin?

1 回表示 (過去 30 日間)
Bruce Vernham
Bruce Vernham 2019 年 12 月 6 日
コメント済み: Stephen23 2019 年 12 月 7 日
matlI have a list of signals in a loop. The variables names of the signals are in signal list.
oldsize=evalin('base', ['length(' signallist{i} ')']);
assignin('base', signallist{i}, ...
evalin('base', [signallist{i} '(1:shortestsignalsize)'])); % shorten all signals
  5 件のコメント
Bruce Vernham
Bruce Vernham 2019 年 12 月 6 日
This is new than above and allows to interpolate all the data to a single axis.
Stephen23
Stephen23 2019 年 12 月 7 日
"This is new than above and allows to interpolate all the data to a single axis."
It might be newer, but it is a badly designed (no output argument) and GUIDE-based....
Better to use importMDF3 from here:
or probably something from the vehicle network toolbox.

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

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by