I am having a problem to save the data as a text file (Matrix of size 31500x6) in matlab. I uesd a generic save function in matlab but then its saving the digits with e_function, which i can not use. Pleasee help..

I used the function.... save Twind4rotor1.txt T -ascii; where T is matrix of (31500x6). In the .txt file, the data are stored in scientific notation, which my other program can not read. I need the data to be just as a normal matrix representation . I am having hard time to understand the syntex of fpritf funtion i was trying with ... fid = fopen('Twind4rotor1.txt','w'); fprintf(fid,'%6.2f %12.8f\r\r\n',T); fclose(fid)..... It is generating the file with just two column, please help
Thank you in advance. Mukunda

 Réponse acceptée

i just found out the syntex..i just used fprintf(fid,'%5.4f\t%5.4f\t%5.4f\t%5.4f\t%5.4f\t%5.4f\r\n',T') and its working fine...anyway..thank you

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by