Borrar filtros
Borrar filtros

mat to ascii conversion

44 visualizaciones (últimos 30 días)
Gowri R
Gowri R el 18 de En. de 2023
Respondida: Ashu el 27 de En. de 2023
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 comentarios
Matt Butts
Matt Butts el 18 de En. de 2023
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 el 25 de En. de 2023
to check if you have permissions use:
fileattrib ggoodFFR.mat

Iniciar sesión para comentar.

Respuesta aceptada

Ashu
Ashu el 27 de En. de 2023
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

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by