Is there a way to have load command return data in format other than struct?

1 次查看(过去 30 天)
When I do abc = load('abc.mat','VAR1') the data loads as a structure even though VAR1 is a financial time series. How can I have it create a financial time series called abc?

采纳的回答

Oleg Komarov
Oleg Komarov 2012-3-21
abc = fints;
def = fints;
save mymat
clear
load('mymat','abc')
As opposed to
load mymat
which poofs all the variables in the workspace.
A note of warning: for systematic and big project I would always recommend to load the variables into a structure, then retrieve the fieldnames.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by