Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to covert a file of data into array

1 次查看(过去 30 天)
lafnath p
lafnath p 2016-10-24
关闭: MATLAB Answer Bot 2021-8-20
i have a file with comma seperated values created from a 3d array.now i want regain 3d array from text file

回答(2 个)

KSSV
KSSV 2016-10-24
doc csvread

lafnath p
lafnath p 2016-10-24
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 个评论
KSSV
KSSV 2016-10-24
data = load(yourtextfile) ; % load / import
iwant = [data(:,1) data(:,3) data(:,2)] ;
Jan
Jan 2016-10-24
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

Community Treasure Hunt

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

Start Hunting!

Translated by