필터 지우기
필터 지우기

Save signal as .dat file

조회 수: 190 (최근 30일)
hajer
hajer 2011년 12월 28일
댓글: Hafsa Asad 2018년 12월 18일
Hi , i have signal and i want to save it after modified(save as .dat ) how i can do that ?
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 12월 28일
There is no standard format for .dat files. .dat is used as an extension to indicate data files in some format that is private or unique to the program. Usually .dat is a binary format that would have to be written using the low level I/O routines.
We would have to know the exact internal format used by whatever program you would be reading this in with.

댓글을 달려면 로그인하십시오.

답변 (2개)

Wayne King
Wayne King 2011년 12월 28일
x = randn(100,1);
save test.dat x -ascii
% or
save('c:\folderyouwant\test.dat','x','-ascii');
save supports other options as well.
  댓글 수: 2
hajer
hajer 2011년 12월 28일
thank you ,but i do not know the name of file because the name of file is entrance by the user
Walter Roberson
Walter Roberson 2011년 12월 28일
When you use the () form of save, the first parameter can be a variable name that contains the file name. For example
UserFile = 'c:\folderyouwant\test.dat';
save(UserFile, 'x', '-ascii')

댓글을 달려면 로그인하십시오.


Hafsa Asad
Hafsa Asad 2015년 3월 22일
dlmwrite('myfile.dat', my_matrix_vals)
  댓글 수: 2
andy wen
andy wen 2017년 4월 10일
thank you ;)
Hafsa Asad
Hafsa Asad 2018년 12월 18일
my pleasure : )

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Standard File Formats에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by