フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

strange cell array to matrix

2 ビュー (過去 30 日間)
venkat ta
venkat ta 2020 年 9 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
[file,path]=uigetfile('*.csv','MultiSelect','on');
if ischar(file) % only 1 file selected
files={file};
end
File = fullfile(char(path),char(file));
I like normal x data and ydata in simple matrix form
[A1,delimiterOut,headerlinesOut] = importdata(File);

回答 (1 件)

Mohammad Sami
Mohammad Sami 2020 年 9 月 18 日
編集済み: Mohammad Sami 2020 年 9 月 18 日
Use the function readtable (or readmatrix) to load your file.
opts = delimitedTextImportOptions('NumVariables',2,'Delimiter',';','DataLines',5);
A1 = readtable(File,opts);
  2 件のコメント
venkat ta
venkat ta 2020 年 9 月 18 日
seems delimitedTextImportOptions function isnot available at R2018a!
Mohammad Sami
Mohammad Sami 2020 年 9 月 18 日
You can then replace it with detect import options function. https://www.mathworks.com/help/matlab/ref/detectimportoptions.html

この質問は閉じられています。

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by