How to write all the character continuously
Mostra commenti meno recenti
Hi guys. I got a question want to ask you guys. Below is my code.
string = uint8(retrieveblock);
export = sprintf('%d',string );
export = bin2dec(export);
char_export = char(export);
display(char_export);
fid = fopen('retrievedText.txt', 'w');
fwrite(fid, char_export);
fclose(fid);
This is within a for loop. my question is why I will just write the last character into the text file. Thanks and appreciate your opinion.
2 Commenti
Jan
il 1 Mar 2013
You can edit the original question to improve the formatting of the code. I've inserted a blank line before and after the code.
Please use meaningful tags. All questions in this forum concern "Matlab".
Willam Willam
il 1 Mar 2013
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Import and Export in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!