Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
MATLAB Code
a guest
Jan 4th, 2018
1,647
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
MatLab
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
>>
[
y, Fs
]
= audioread
(
'M1 - 1.wav'
)
;
>> X =
fft
(
y
)
;
>> X = X
(
1
:
length
(
y
)
/
2
+
1
)
;
>> freq =
0
:Fs/
length
(
y
)
:Fs/
2
;
>>
plot
(
freq,
abs
(
X
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
compile_code.ps1
Batch | 2 min ago | 0.17 KB
apply_patch.ps1
Batch | 13 min ago | 0.17 KB
extract_archive.bat
Batch | 23 min ago | 0.17 KB
track_activity.bat
Batch | 33 min ago | 0.17 KB
BASEAddr
Lua | 1 hour ago | 3.50 KB
schedule_jobs.ps1
Batch | 1 hour ago | 0.17 KB
build_assets.ps1
Batch | 1 hour ago | 0.17 KB
initialize_db.ps1
Batch | 1 hour ago | 0.17 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!