save data file without movefile
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Somnath Kale
el 10 de Dic. de 2020
Comentada: Cris LaPierre
el 14 de Dic. de 2020
Hi
i wanted to save my generated datafile in folder "C:\Users\IISER BPR\Documents\MATLAB\Instrument program\SMU_Keysight\Data"
I dont want to use movefile because it shows error. can someone please suggest me that how to do that?
it will bve great if one write small code.
Thanks in advance
0 comentarios
Respuesta aceptada
Cris LaPierre
el 10 de Dic. de 2020
Include the full path in your file name when you save the file.
4 comentarios
Somnath Kale
el 13 de Dic. de 2020
Editada: Somnath Kale
el 13 de Dic. de 2020
Cris LaPierre
el 14 de Dic. de 2020
Untested
% To save and Display the collected data
Resisatnce = Voltage./Current ;
Collected_Data = table(Time, Voltage, Current, Resisatnce) ;
path = 'C:\Users\IISER BPR\Documents\MATLAB\Instrument program\SMU_Keysight\Data';
writetable(Collected_Data, fullfile(path,DatafileName),"Delimiter",'\t') ;
I do not have any experience trying to stream data directly to a file. You might find this post helpful. If not, I suggest starting a new question for that.
Más respuestas (0)
Ver también
Categorías
Más información sobre Low-Level File I/O en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!