|
|
【答案】应助回帖
★ ★ ★ ★ ★ 一方水土: 金币+5, 博学EPI+1, ★有帮助 2016-09-27 15:30:47
http://matlab.izmiran.ru/help/techdoc/matlab_prog/ch10_in8.html
To import variables from a binary or ASCII file on your disk to your workspace, use the load function. You can load all variables from the workspace in a single operation (if you omit the filename, MATLAB loads from file matlab.mat):
load filename
or load just those variables that you specify:
load filename var1 var2 ... varN
Use the wildcard character (*) in the variable name to load those variables that match a specific pattern.
(This works for MAT-files only.) For example, the following command loads all variables that start with str from file strinfo.mat:
load strinfo str*
~~~~~
input_train input[1]..[10]
input_test input[11]..[20]
output_train output[1]..[10]
output_test output[11]..[20] |
|