필터 지우기
필터 지우기

load matrix from *.txt file

조회 수: 2 (최근 30일)
Cruise
Cruise 2012년 3월 13일
Hi everybody, I want to load a matrix from *.txt file by use command "load" example: value.txt
2050 0 1175 1
2050 2110 1452 1
2050 2334 1663 1
2050 2724 2670 1
2050 2730 3067 1
This is my code
{load C:\Matlab\value.txt
value1=load}
Is it not right? How can i do? Thanks a lot.
  댓글 수: 2
Jan
Jan 2012년 3월 13일
"value1=load" is not correct.
Cruise
Cruise 2012년 3월 13일
So how do i do to solve it?

댓글을 달려면 로그인하십시오.

채택된 답변

Aldin
Aldin 2012년 3월 13일
Hey you!
Use excel file is much easier and better than txt. If you want i can write for you the algorithm how to do this in with excel??
  댓글 수: 2
Cruise
Cruise 2012년 3월 13일
Thank you so much!!!
I did it.
A=(load 'C:\Users\Documents\MATLAB\'value.txt)
Don't use ";" because it not show matrix.
Aldin
Aldin 2012년 3월 14일
Than accept your answer that anybody knows that it is seccussful closed.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by