Importing data from .mat file into uitable
5 ビュー (過去 30 日間)
古いコメントを表示
DirContents = dir(pwd); DirFiles = {DirContents.name}; settingsFlag = DirFiles(~cellfun(@isempty,regexpi(DirFiles,'Settings.mat'))); % 1 = exist/0 = doesn't exist if settingsFlag == 1 for i = 1:length(handles.fileName) set(handles.uitable1,'Data','Settings.mat'); data(i,:) = {load('Settings.mat'),signals{i}}; end end
I am trying to import data from settings.mat into the first column of my uitable. Any help would be appreciated.
0 件のコメント
回答 (1 件)
Vishwas
2017 年 12 月 8 日
You need to load the .mat file first on to a variable and then use "set". I believe the two links below will help:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!