plot a sinusoidal signal from a file.dat
Ältere Kommentare anzeigen
Hi everyone, I have stored values of a sinusoidal signal in a file.dat, i worked with a Frequency of sampling which is worth 8000hz,now i want to plot my signal from the file.dat in matlab but i don't know how, can you help me please!?
Akzeptierte Antwort
Weitere Antworten (1)
Tamir Suliman
am 27 Nov. 2016
0 Stimmen
this how it will work
first you will have to import the dat file to matlab using import command
then assign that to a variable
for example import file.dat
d=file
then use that data and sub in to yoru sin equation
y = sin(d()*t)
whatever your t value is
then plot the signals
1 Kommentar
Souhir FH
am 27 Nov. 2016
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!