フィルターのクリア

how can i read all the columns separately from the text file?

2 ビュー (過去 30 日間)
ocsse
ocsse 2018 年 4 月 4 日
回答済み: ocsse 2018 年 4 月 4 日
this is my code but i don't how can i get each column separately.
% Appendix D1
fid3 = fopen('executionTime.txt');
executionTime = textscan(fid3, '%f %d', 'headerlines', 1);
fclose(fid3);
% executionTime = {1,:};
executionTime{1}{1}
here is executionTime variable:
Thank you
  2 件のコメント
Birdman
Birdman 2018 年 4 月 4 日
Can you share your file?
ocsse
ocsse 2018 年 4 月 4 日
sure

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

採用された回答

ocsse
ocsse 2018 年 4 月 4 日
try this:
executionTime{1,1} % print the first column of the file
executionTime{1,2} % print the second column of the file

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCode Execution Profiling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by