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

1 vue (au cours des 30 derniers jours)
Bruce Vernham
Bruce Vernham le 6 Déc 2019
Commenté : Stephen23 le 7 Déc 2019
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 commentaires
Bruce Vernham
Bruce Vernham le 6 Déc 2019
This is new than above and allows to interpolate all the data to a single axis.
Stephen23
Stephen23 le 7 Déc 2019
"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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by