<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649</link>
    <title>MATLAB Central Newsreader - how to create waterfall plot</title>
    <description>Feed for thread: how to create waterfall plot</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 29 Aug 2009 14:32:03 -0400</pubDate>
      <title>how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676718</link>
      <author>Clement Lim</author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
I had the following script to read a .wav file and plot the spectrogram of the signal generated.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; [filename, pathname] = uigetfile('*.*', 'Pick any file');&lt;br&gt;
&amp;gt;&amp;gt; [y, fs, nbits] = wavread(filename);&lt;br&gt;
&amp;gt;&amp;gt; spectrogram(y);&lt;br&gt;
&lt;br&gt;
I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?&lt;br&gt;
&lt;br&gt;
Thanks a million!</description>
    </item>
    <item>
      <pubDate>Sat, 29 Aug 2009 14:44:03 -0400</pubDate>
      <title>Re: how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676720</link>
      <author>us</author>
      <description>&quot;Clement Lim&quot; &amp;lt;clementlim@singnet.com.sg&amp;gt; wrote in message &amp;lt;h7be53$kjl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I had the following script to read a .wav file and plot the spectrogram of the signal generated.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [filename, pathname] = uigetfile('*.*', 'Pick any file');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [y, fs, nbits] = wavread(filename);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; spectrogram(y);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks a million!&lt;br&gt;
&lt;br&gt;
a hint:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;help waterfall;&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Sat, 29 Aug 2009 15:08:03 -0400</pubDate>
      <title>Re: how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676722</link>
      <author>us</author>
      <description>&quot;us &quot;&lt;br&gt;
&amp;gt; &amp;gt; I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thanks a million!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; a hint:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      help waterfall;&lt;br&gt;
&lt;br&gt;
sorry, forgot the ...example... part...&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;d=load('chirp');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ff,ff,tt,pxx]=spectrogram(d.y);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;subplot(2,1,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;spectrogram(d.y);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;subplot(2,1,2);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arg={ff,tt,10*log10(abs([pxx.'])+eps)};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;waterfall(arg{:});&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;colormap(jet(256));&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Sat, 29 Aug 2009 15:22:03 -0400</pubDate>
      <title>Re: how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676726</link>
      <author>Clement Lim</author>
      <description>&quot;us &quot; &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;h7bg8j$afj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;us &quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks a million!&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; a hint:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;      help waterfall;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; sorry, forgot the ...example... part...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      d=load('chirp');&lt;br&gt;
&amp;gt;      [ff,ff,tt,pxx]=spectrogram(d.y);&lt;br&gt;
&amp;gt;      subplot(2,1,1);&lt;br&gt;
&amp;gt;      spectrogram(d.y);&lt;br&gt;
&amp;gt;      subplot(2,1,2);&lt;br&gt;
&amp;gt;      arg={ff,tt,10*log10(abs([pxx.'])+eps)};&lt;br&gt;
&amp;gt;      waterfall(arg{:});&lt;br&gt;
&amp;gt;      colormap(jet(256));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
Hi us,&lt;br&gt;
&lt;br&gt;
Tks for the prompt reply. However the above code does not allow me to analyse in term of a music cd. That mean, I would like the script to prompt the user to input in the file to analyse. Currently, my original code is only able to analyse .wav files. However, it wont work for .wma file. &lt;br&gt;
Furthermore, it is possible for the waterfall plot to animate as a function of time when the music is being play?&lt;br&gt;
&lt;br&gt;
Pls advise tks.</description>
    </item>
    <item>
      <pubDate>Sat, 29 Aug 2009 15:50:18 -0400</pubDate>
      <title>Re: how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676728</link>
      <author>us</author>
      <description>&quot;Clement Lim&quot;&lt;br&gt;
&amp;gt; Tks for the prompt reply. However the above code does not allow me to analyse in term of a music cd. That mean, I would like the script to prompt the user to input in the file to analyse. Currently, my original code is only able to analyse .wav files. However, it wont work for .wma file. &lt;br&gt;
&amp;gt; Furthermore, it is possible for the waterfall plot to animate as a function of time when the music is being play?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Pls advise tks.&lt;br&gt;
&lt;br&gt;
as far as i know, reading WMA files into ML currently can only be achieved by the signal proc blockset (an extension of SL) module FROM-MULTIMEDIA-FILE...&lt;br&gt;
thus, you could ...try(!)... to create a SL model to do what you want; although i doubt that the current hardware is physically able to generate a waterfall plot of a moving spectrogram in real-time...&lt;br&gt;
however, others will know more (and better)...&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Sun, 30 Aug 2009 10:02:01 -0400</pubDate>
      <title>how to show filename in GUI</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#676822</link>
      <author>BC Tan</author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
I have the following code to read in the filename of the music file.&lt;br&gt;
&lt;br&gt;
[filename, pathname] = uigetfile('*.*', 'Pick any file');&lt;br&gt;
[y, fs, nbits] = wavread(filename);&lt;br&gt;
handles.value = filename;&lt;br&gt;
&lt;br&gt;
I had created a GUI and had placed a static text with tag being &quot;tSource&quot;.&lt;br&gt;
I would like to show the filename of the file that the users had chosen in the GUI with the following code.&lt;br&gt;
&lt;br&gt;
set(handles.tSource,'String',sprintf('%s:%d',handles.value,handles.id));&lt;br&gt;
&lt;br&gt;
However, the code is unable to show the filename as predicted. can anyone tell me what is wrong with my code?&lt;br&gt;
&lt;br&gt;
Tks a million!</description>
    </item>
    <item>
      <pubDate>Wed, 28 Oct 2009 03:44:02 -0400</pubDate>
      <title>Re: how to create waterfall plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259649#690196</link>
      <author>asdafa </author>
      <description>&quot;Clement Lim&quot; &amp;lt;clementlim@singnet.com.sg&amp;gt; wrote in message &amp;lt;h7be53$kjl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I had the following script to read a .wav file and plot the spectrogram of the signal generated.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [filename, pathname] = uigetfile('*.*', 'Pick any file');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [y, fs, nbits] = wavread(filename);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; spectrogram(y);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks a million!&lt;br&gt;
&lt;br&gt;
Hi, sorry to use your post..I don't know how to crete one..really sorry&lt;br&gt;
I have a problem with your code:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [filename, pathname] = uigetfile('*.*', 'Pick any file');&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; [y, fs, nbits] = wavread(filename);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; spectrogram(y);&lt;br&gt;
I make it run but says:&lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; spectrogram at 113&lt;br&gt;
X must be a vector (either row or column).&lt;br&gt;
Error in ==&amp;gt; spec at 3&lt;br&gt;
spectrogram(y);&lt;br&gt;
&lt;br&gt;
Can anyone help me with this please, im new in this.&lt;br&gt;
thanks for your help!</description>
    </item>
  </channel>
</rss>

