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