How to read a .map file

5 ビュー (過去 30 日間)
Seok Joon  Byun
Seok Joon Byun 2018 年 6 月 6 日
コメント済み: Seok Joon Byun 2018 年 6 月 8 日
Hello, I was just curious how you would read a .map file to MATLAB. Also when you use write table, how to reference a table by loop.
clearvars;
clc;
characters_to_write = {'example1' 'example2' 'example3'}';
example1 = array2table(rand(3,3));
example2 = array2table(rand(3,3));
example3 = array2table(rand(3,3));
for loop = 1:size(characters_to_write,1)
filepath = char(strcat('C:\main_path\sub_path\',characters_to_write(loop,1),''));
filename = strcat('C:\main_path\sub_path\',characters_to_write(loop,1),'\test_file_',characters_to_write(loop,1),'.csv');
if ~exist(filepath,'dir')
mkdir(filepath);
writetable(char(characters_to_write(loop,1)),filename,'Delimiter', ','); % this is where I'm trying to reference data in a loop
elseif exist(filepath,'dir')
writetable(char(strcat('output_',characters_to_write(loop,1)','_table')),filename,'Delimiter', ','); % curious
end
end
Thank you.
  19 件のコメント
Walter Roberson
Walter Roberson 2018 年 6 月 8 日
Sorry, there just is not enough information available to us.
Seok Joon  Byun
Seok Joon Byun 2018 年 6 月 8 日
It's all good, thanks though!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by