load matrix from *.txt file

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 个评论

"value1=load" is not correct.
So how do i do to solve it?

请先登录,再进行评论。

 采纳的回答

Aldin
Aldin 2012-3-13

0 个投票

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 个评论

Thank you so much!!!
I did it.
A=(load 'C:\Users\Documents\MATLAB\'value.txt)
Don't use ";" because it not show matrix.
Than accept your answer that anybody knows that it is seccussful closed.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Data Import from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by