Hi,
I am quite new in MAtlab and I would like to have some help,
I have a sine with amplitude and time and I want to save the amplitude data into a raw file. How can I get it? I have tried with the code above.
I am not sure if it is correct. So I would like to know if it is correct or in other way, how can I do it in a correct way. Thank you in advance.
fid=fopen('Profilevoltage.raw','w');
fwrite(fid,amplitude,'uint16');
fclose(fid);
2 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/447525-how-to-save-data-in-a-raw-file#comment_676247
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/447525-how-to-save-data-in-a-raw-file#comment_676247
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/447525-how-to-save-data-in-a-raw-file#comment_676250
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/447525-how-to-save-data-in-a-raw-file#comment_676250
Sign in to comment.