Matlab读取.mat文件画图
var_1 = ["singnal1","singnal2"];%图一 var_2 = ["singnal3","singnal"];%图二 Modename = uigetfile('*.mat'); load(Modename); ListName = [Modename(1:end-3),'Y']; rec_cell = struct2cell(eval(ListName)); list_len = length(eval(ListName)); reshape(rec_cell,[],list_len); namelist_cell = rec_cell(1,:)'; MatStr = [Modename(1:end-3),'Y(1).Data']; x_num = length(eval(MatStr))-1; x = 0:1:x_num; MatName = [Modename(1:end-3),'Y.Name']; str = [];str1 = [];str2 = []; subplot(2,1,1) for t = 1:len
共有 0 条评论