strange cell array to matrix
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
[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);
Respuestas (1)
Mohammad Sami
el 18 de Sept. de 2020
Editada: Mohammad Sami
el 18 de Sept. de 2020
Use the function readtable (or readmatrix) to load your file.
opts = delimitedTextImportOptions('NumVariables',2,'Delimiter',';','DataLines',5);
A1 = readtable(File,opts);
2 comentarios
venkat ta
el 18 de Sept. de 2020
Mohammad Sami
el 18 de Sept. de 2020
You can then replace it with detect import options function. https://www.mathworks.com/help/matlab/ref/detectimportoptions.html
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!