help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HI new guy trying to load matlab files


From: malik martin
Subject: Re: HI new guy trying to load matlab files
Date: Fri, 9 Mar 2007 08:02:22 -0500

dunno if the list will accept this attachment so i didnt add it to the
original message.

On 3/9/07, malik martin <address@hidden> wrote:
it's the syntax in that file or somehing cause alll he other files in
that directory work.

you see any problems with this syntax?
what's column 15?? i cant seem to find  that.

[u1,FS,NBITS]=wavread('ton2.wav');
y=interp(u1(1:30),4);

subplot(2,4,1);
plot((0:96)*5,y(1:97));
title('x(t)');
axis([0 500 -0.05 0.05]);
xlabel('t in \musec \rightarrow');
subplot(2,4,2);
stem((0:24),u1(1:25),'.');axis([0 25 -0.05 0.05]);
xlabel('n \rightarrow');
title('x(n)');
subplot(2,4,3);
stem((0:24),0.5*u1(1:25),'.');axis([0 25 -0.05 0.05]);
xlabel('n \rightarrow');
title('y(n)');
subplot(2,4,4);
plot((0:96)*5,0.5*y(1:97));axis([0 500 -0.05 0.05]);
xlabel('t in \musec \rightarrow');
title('y(t)');



On 3/9/07, malik martin <address@hidden> wrote:
> this is what i got when i tried
>
> octave:8> load figure1_02
> error: load: unable to open input file `figure1_02'
> octave:8> figure1_02
> error: `wavread' undefined near line 1 column 15
> error: near line 1 of file 
`/cygdrive/e/bookx/dafx/M_files_chap01/figure1_02.m'
> octave:8>
>
>
> On 3/8/07, John W. Eaton <address@hidden> wrote:
> > On  8-Mar-2007, malik martin wrote:
> >
> > | i'm new to all of this stuff and i'm trying to get octave to load matlab 
files.
> > | this is the result i get.
> > |
> > | octave:23> load figure1_02.m
> > | error: load: figure1_02.m: inconsistent number of columns near line 2
> > | error: load: unable to extract matrix size from file `figure1_02.m'
> > |
> > |
> > | any ideas?
> >
> > You "load" data files.  To call functions, just type the name of the
> > function without the ".m".  So the above should probably be
> >
> >   octave:23> figure1_02
> >
> > jwe
> >
>

Attachment: TON2.WAV
Description: Wave audio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]