dlmwrite function Could not open file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi ,
I'm trying to build a very complicated function :) that looks like :
A = dlmread('testmatrix.txt',',');
Result = A*A ;
dlmwrite ('result.txt',Result,'newline','pc');
I got some questions about the dlmwrite function :
1) where does the 'result.txt' goes ? 2) I'm keep getting errors like : Could not open file result.txt
my goal is to use this function to write to the relative path where the m file is located.
thanks . Yuri
댓글 수: 0
답변 (1개)
James Tursa
2015년 4월 3일
result.txt will go into your current directory. I.e., it will go into what this command shows:
cd
Do you have write permission in this directory?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!