load ('ggoodFFR.mat');
save ('ggoodFFR.txt', '-ascii');
I used this code to convert mat to ascii.but its showing error.Its an average file with value 1*3125 double.
Please help

댓글 수: 4

Luca Ferro
Luca Ferro 2023년 1월 18일
could you share the error?
Gowri R
Gowri R 2023년 1월 18일
Error using save
Unable to write file FFR.txt: permission denied.
Error in mattotext (line 3)
save ('FFR.txt','-ascii');
Matt Butts
Matt Butts 2023년 1월 18일
Do you have write access to the current directory? Does a file already exist called FFR.txt in the current directory?
Luca Ferro
Luca Ferro 2023년 1월 25일
to check if you have permissions use:
fileattrib ggoodFFR.mat

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

 채택된 답변

Ashu
Ashu 2023년 1월 27일

0 개 추천

Hi Gowri,
You are using the right code to save the file as .txt.
The problem might be due to -
  1. An anti-virus program denying permissions: Try to disable the antivirus to quickly check if the problem is resolved.
  2. Limited write permissions in that location: Try to change the location of saving the file. You can also experiment by creating and deleting a text file in that location to confirm this.
Regards
Ashutosh

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2023년 1월 18일

답변:

2023년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by