how to covert a file of data into array

i have a file with comma seperated values created from a 3d array.now i want regain 3d array from text file

Respuestas (2)

KSSV
KSSV el 24 de Oct. de 2016

0 votos

doc csvread
lafnath p
lafnath p el 24 de Oct. de 2016

0 votos

i wrote data of (x,y,z) values in a text file as (x,z,y).how to regain values of(x,y,z)

2 comentarios

data = load(yourtextfile) ; % load / import
iwant = [data(:,1) data(:,3) data(:,2)] ;
Jan
Jan el 24 de Oct. de 2016
Please do not post clarifications as answers and corresponding answers as a comment. All details belonging to a question should be found insider the question. Thanks

La pregunta está cerrada.

Etiquetas

Preguntada:

el 24 de Oct. de 2016

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by