From: Abdullah on

Hi everyone

I am trying to plot many slides using Matlab command spectrogram to have image of sample.

I experiment the data and get a good result for one slide (which has many signals).

I need to increase the time window to be able to plot the next slide using spectrogram.

The code I used for just one slide is fllowing

Thank you for your help and tips.
Abdul

load datafile.mat x

T = 0:0.001:2;
F=0:.1:100;

for i = 1:71
X = x(i,:);
[Y,F,T,P]= spectrogram(X,256,250,F,1E3,'yaxis');


image(T,F,10*log10(abs(Y)));
axis xy;
xlabel('Time')
ylabel('Frequency')

end
From: us on
On Aug 5, 1:40 am, "Abdullah " <zabdull...(a)hotmail.com> wrote:
> Hi everyone
>
> I am trying to plot many slides using Matlab command spectrogram to have image of sample.
>
> I experiment the data and get a good result for one slide (which has many signals).
>
> I need to increase the time window to be able to plot the next slide using spectrogram.
>
> The code I used for just one slide is fllowing
>
> Thank you for your help and tips.
> Abdul
>
> load datafile.mat x
>
> T = 0:0.001:2;
> F=0:.1:100;
>
> for i = 1:71
>     X = x(i,:);
>     [Y,F,T,P]= spectrogram(X,256,250,F,1E3,'yaxis');
>
>     image(T,F,10*log10(abs(Y)));
>     axis xy;
>     xlabel('Time')
>     ylabel('Frequency')
>
> end  

hmm...
a hint, maybe:

help pause;

us
From: Abdullah on
us <us(a)neurol.unizh.ch> wrote in message <377ae2cb-c1f9-4308-b780-efa7e441812a(a)x21g2000yqa.googlegroups.com>...
> On Aug 5, 1:40 am, "Abdullah " <zabdull...(a)hotmail.com> wrote:
> > Hi everyone
> >
> > I am trying to plot many slides using Matlab command spectrogram to have image of sample.
> >
> > I experiment the data and get a good result for one slide (which has many signals).
> >
> > I need to increase the time window to be able to plot the next slide using spectrogram.
> >
> > The code I used for just one slide is fllowing
> >
> > Thank you for your help and tips.
> > Abdul
> >
> > load datafile.mat x
> >
> > T = 0:0.001:2;
> > F=0:.1:100;
> >
> > for i = 1:71
> >     X = x(i,:);
> >     [Y,F,T,P]= spectrogram(X,256,250,F,1E3,'yaxis');
> >
> >     image(T,F,10*log10(abs(Y)));
> >     axis xy;
> >     xlabel('Time')
> >     ylabel('Frequency')
> >
> > end  
>
> hmm...
> a hint, maybe:
>
> help pause;
>
> us

I am looking for 3D image time,frequency,intensity (colour).

If I use pause I will have many slide while I want all in one image.

Please Help me if you can?
Thanks
Abdul
From: us on
"Abdullah " <zabdullahz(a)hotmail.com> wrote in message <i3d2ok$pf7$1(a)fred.mathworks.com>...
> us <us(a)neurol.unizh.ch> wrote in message <377ae2cb-c1f9-4308-b780-efa7e441812a(a)x21g2000yqa.googlegroups.com>...
> > On Aug 5, 1:40 am, "Abdullah " <zabdull...(a)hotmail.com> wrote:
> > > Hi everyone
> > >
> > > I am trying to plot many slides using Matlab command spectrogram to have image of sample.
> > >
> > > I experiment the data and get a good result for one slide (which has many signals).
> > >
> > > I need to increase the time window to be able to plot the next slide using spectrogram.
> > >
> > > The code I used for just one slide is fllowing
> > >
> > > Thank you for your help and tips.
> > > Abdul
> > >
> > > load datafile.mat x
> > >
> > > T = 0:0.001:2;
> > > F=0:.1:100;
> > >
> > > for i = 1:71
> > >     X = x(i,:);
> > >     [Y,F,T,P]= spectrogram(X,256,250,F,1E3,'yaxis');
> > >
> > >     image(T,F,10*log10(abs(Y)));
> > >     axis xy;
> > >     xlabel('Time')
> > >     ylabel('Frequency')
> > >
> > > end  
> >
> > hmm...
> > a hint, maybe:
> >
> > help pause;
> >
> > us
>
> I am looking for 3D image time,frequency,intensity (colour).
>
> If I use pause I will have many slide while I want all in one image.
>
> Please Help me if you can?
> Thanks
> Abdul

hmm... can you define your use of the term SLIDE(?)...
or - do you mean SLICE(?)...

us
From: Abdullah on
"us " <us(a)neurol.unizh.ch> wrote in message <i3dmv3$oa2$1(a)fred.mathworks.com>...
> "Abdullah " <zabdullahz(a)hotmail.com> wrote in message <i3d2ok$pf7$1(a)fred.mathworks.com>...
> > us <us(a)neurol.unizh.ch> wrote in message <377ae2cb-c1f9-4308-b780-efa7e441812a(a)x21g2000yqa.googlegroups.com>...
> > > On Aug 5, 1:40 am, "Abdullah " <zabdull...(a)hotmail.com> wrote:
> > > > Hi everyone
> > > >
> > > > I am trying to plot many slides using Matlab command spectrogram to have image of sample.
> > > >
> > > > I experiment the data and get a good result for one slide (which has many signals).
> > > >
> > > > I need to increase the time window to be able to plot the next slide using spectrogram.
> > > >
> > > > The code I used for just one slide is fllowing
> > > >
> > > > Thank you for your help and tips.
> > > > Abdul
> > > >
> > > > load datafile.mat x
> > > >
> > > > T = 0:0.001:2;
> > > > F=0:.1:100;
> > > >
> > > > for i = 1:71
> > > >     X = x(i,:);
> > > >     [Y,F,T,P]= spectrogram(X,256,250,F,1E3,'yaxis');
> > > >
> > > >     image(T,F,10*log10(abs(Y)));
> > > >     axis xy;
> > > >     xlabel('Time')
> > > >     ylabel('Frequency')
> > > >
> > > > end  
> > >
> > > hmm...
> > > a hint, maybe:
> > >
> > > help pause;
> > >
> > > us
> >
> > I am looking for 3D image time,frequency,intensity (colour).
> >
> > If I use pause I will have many slide while I want all in one image.
> >
> > Please Help me if you can?
> > Thanks
> > Abdul
>
> hmm... can you define your use of the term SLIDE(?)...
> or - do you mean SLICE(?)...
>
> us

Yes, I have many slices each slice has 71 rows and 5000 columns. The slice is sectional image. Can Spectrogram plot many slices or just one slice??

Please Help me if you can?
Thanks