フィルターのクリア

how to i save double in textfile ?

2 ビュー (過去 30 日間)
Kelly Howard
Kelly Howard 2016 年 1 月 13 日
回答済み: Walter Roberson 2016 年 1 月 13 日
i would like to save the following data into .txt format. i tried to save it using string but the code is messed up.
load testelm.mat
fidtrg = fopen('C:\Users\wert\Desktop\action recognition latest\trainelm11.txt' ,'wt')
a = num2str(c);
fprintf(fidtrg, '%s',a);
fclose(fidtrg)

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 13 日
save('C:\Users\wert\Desktop\action recognition latest\trainelm11.txt', 'fidtrg', '-ASCII');
You might also want to add '-DOUBLE' to the end of the options.

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by