error in mat to csv conversion
조회 수: 1 (최근 30일)
이전 댓글 표시
load('fif.mat'); csvwrite('fif.csv', fif); ERROR: convert Error using dlmwrite (line 130) Could not open file fif.csv
Error in csvwrite (line 43) dlmwrite(filename, m, ',', r, c);
Error in convert (line 2) csvwrite('fif.csv', fif);
the code is loading file but not converting it.
댓글 수: 2
Kirby Fears
2016년 3월 28일
After running load('fif.mat'); is there a variable in your workspace called fif? If so, what are the contents and data type?
You are passing fif to csvwrite as if it's a workspace variable. If you have a double array called fif in your workspace, that would work.
채택된 답변
Walter Roberson
2016년 3월 28일
- You might be cd'd to a directory that you cannot write to
- fif.csv might already exist but have its security set so that you cannot write it
Look at
cd
fileattrib('.')
which fif.csv
fileattrib('./fif.csv')
댓글 수: 3
Walter Roberson
2016년 3월 28일
편집: Walter Roberson
2016년 3월 28일
You are in a directory you cannot write into. You need to
cd E:\SEMESTERS_WORK\MS_2k14\THESIS\code by date\csv
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!