Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

How do i write in matlab an application which create a window like this

write in matlab an application which create a window like this


------------------------------------------------------------------
|            |            |
|            |            |
|            |            |
|  wav file                           | FFT(wav file)                    |
|            |            |
|            |            |
|            |            |
------------------------------------------------------------------

      LOAD            EXIT



havin 2 buttons: load and exit

load: open a wave file and plot to the left side of the window the wav file and to the right side its fft (file)
fft= fast fourier transform
0
bmw240smt
Asked:
bmw240smt
2 Solutions
 
yuk99Commented:
Looks like a homework? You know we cannot give you the completed m-code. Just a few hints.

Try first to read wav file. Use wavread('filename') in Matlab. You can browse for a file with uigetfile function. Then Plot the result with plot function.
Do FFT transformatino with FFT function. Plot it.
You can combine 2 plots on the same figure with
subplot(1,2,1)
wav plot
subplot(1,2,2)
fft plot

Once you master this you can use GUIDE to create a GUI in Matlab with 2 buttons and axis.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now