eigshow function

View: New views
11 Messages — Rating Filter:   Alert me  

eigshow function

by Vito De Tullio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.
I'm a newbie octave user. For my exam, I need to use matlab, but I found
octave (for linux).
It works for all, but I need to use a function, eigshow, that's not present
(is present in matlab). It should draw a graphic with 2 lines representing
eigenvalues and eigenvectors...

Surfing on the net, I found some implementations, but all of them gave me
errors in octave.

http://web.mit.edu/18.06/www/Course-Info/Mfiles/eigshow.m
http://kom.aau.dk/~borre/kalman/lecture3/eigshow.m
http://www.cs.ubc.ca/~mpf/cpsc402/downloads/eigshow.m

for example the first give me

octave:1> eigshow
warning: get: invalid property `tag'
error: `x' undefined near line 29 column 30
error: evaluating argument list element number 2
error: evaluating assignment expression near line 29, column 12
error: evaluating if command near line 28, column 3
error: called from `isequal' in file
`/usr/share/octave/2.9.12/m/general/isequal.m'
error: if: error evaluating conditional expression
error: evaluating if command near line 51, column 1
error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
error: evaluating if command near line 33, column 1
error: called from `eigshow' in file `/home/zed/eigshow.m'
octave:1>

can you help me?

--
By ZeD

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 15, 2008, at 11:34 AM, Vito De Tullio wrote:

> Hi all.
> I'm a newbie octave user. For my exam, I need to use matlab, but I  
> found
> octave (for linux).
> It works for all, but I need to use a function, eigshow, that's not  
> present
> (is present in matlab). It should draw a graphic with 2 lines  
> representing
> eigenvalues and eigenvectors...
>
> Surfing on the net, I found some implementations, but all of them  
> gave me
> errors in octave.
>
> http://web.mit.edu/18.06/www/Course-Info/Mfiles/eigshow.m
> http://kom.aau.dk/~borre/kalman/lecture3/eigshow.m
> http://www.cs.ubc.ca/~mpf/cpsc402/downloads/eigshow.m
>
> for example the first give me
>
> octave:1> eigshow
> warning: get: invalid property `tag'
> error: `x' undefined near line 29 column 30
> error: evaluating argument list element number 2
> error: evaluating assignment expression near line 29, column 12
> error: evaluating if command near line 28, column 3
> error: called from `isequal' in file
> `/usr/share/octave/2.9.12/m/general/isequal.m'
> error: if: error evaluating conditional expression
> error: evaluating if command near line 51, column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 33, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>
>
> can you help me?

I  have not tried to use eigshow.m, but the invalid property warning  
for 'tag' is no longer a problem in the most recent release, 3.0.1.

How did you install Octave? ... I'd be surprised if a more recent  
version of Octave is not available for you.

        http://www.gnu.org/software/octave/download.html

Ben



_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by dbateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Vito De Tullio wrote:
Please note that every one of the above is in fact the eigshow.m function from matlab itself (various versions) and so is copyright Mathworks, so legally you have no right to use it in Octave and the above links should never have been made available as above.

The main reason an eigshow function hasn't been implemented in Octave yet is that it uses UI elements which don't yet exist in Octave but I imagine will shortly. The function itself is rather simple.

D.

Re: eigshow function

by Vito De Tullio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Abbott wrote:

> I  have not tried to use eigshow.m, but the invalid property warning
> for 'tag' is no longer a problem in the most recent release, 3.0.1.

First of all, thanks. I was using octave 2.9.12 (the default on my OpenSuse)
Now, using the version 3.0.1 things goes better, but I have other errors!

octave:1> eigshow
warning: set: invalid property `numbertitle'
warning: set: invalid property `menubar'
error: `uicontrol' undefined near line 120 column 1
error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
error: evaluating if command near line 40, column 1
error: called from `eigshow' in file `/home/zed/eigshow.m'
octave:1>

--
By ZeD

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 15, 2008, at 12:57 PM, Vito De Tullio wrote:

> Ben Abbott wrote:
>
>> I  have not tried to use eigshow.m, but the invalid property warning
>> for 'tag' is no longer a problem in the most recent release, 3.0.1.
>
> First of all, thanks. I was using octave 2.9.12 (the default on my  
> OpenSuse)
> Now, using the version 3.0.1 things goes better, but I have other  
> errors!
>
> octave:1> eigshow
> warning: set: invalid property `numbertitle'
> warning: set: invalid property `menubar'
> error: `uicontrol' undefined near line 120 column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 40, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>

Eventually those problems will be resolved (there is a lot of effort  
in developing such capabilities for Octave).

However, as David pointed out, you still have the problem of no  
*legal* eigshow.m being available for Octave.

Those who monitor and respond to the inquiries on this mail-list are  
proportionately developers for Octave. It is legally important for the  
developers to avoid being exposed to copyrighted code. Thus it is  
impractical and inappropriate for us to offer any advice regarding the  
illegal use of Mathworks code in Octave.

I respectfully ask that you not make such inquiries here :-(

However, if you have trouble with code of your own (or any code that  
is open-source or non-copyrighted) please make as many inquiries as  
you like! :-)

Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Vito De Tullio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Abbott wrote:

> Those who monitor and respond to the inquiries on this mail-list are
> proportionately developers for Octave. It is legally important for the
> developers to avoid being exposed to copyrighted code. Thus it is
> impractical and inappropriate for us to offer any advice regarding the
> illegal use of Mathworks code in Octave.

I'm really sorry for this. Is there any free eigshow implementation? Those I
post were just the first links google point me and I didn't think they were
copyrighted...

--
By ZeD

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Andrea Spadaccini-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ciao Vito,

> > I  have not tried to use eigshow.m, but the invalid property warning
> > for 'tag' is no longer a problem in the most recent release, 3.0.1.
>
> First of all, thanks. I was using octave 2.9.12 (the default on my OpenSuse)
> Now, using the version 3.0.1 things goes better, but I have other errors!
>
> octave:1> eigshow
> warning: set: invalid property `numbertitle'
> warning: set: invalid property `menubar'
> error: `uicontrol' undefined near line 120 column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 40, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>

It's because Octave doesn't natively support the graphic primitives of Matlab.

Try installing the jhandles package, that adds the uicontrol via java
integration.

HTH,

--
[ Andrea Spadaccini - aka lupino3 - GLUGCT - Catania - IM: lupino3@... ]
[ GPG ID: 5D41ABF0 - key on keyservers - Debian GNU / Linux Lenny ( Testing ) ]
[ Linux Registered User 313388 - a(dot)spadaccini(at)catania(dot)linux(dot)it ]
[                Laugh at your problems; everybody else does.                 ]
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Jordi Gutiérrez Hermoso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 15/06/2008, Vito De Tullio <zak.mc.kraken@...> wrote:

> Ben Abbott wrote:
>
>  > Those who monitor and respond to the inquiries on this mail-list are
>  > proportionately developers for Octave. It is legally important for the
>  > developers to avoid being exposed to copyrighted code. Thus it is
>  > impractical and inappropriate for us to offer any advice regarding the
>  > illegal use of Mathworks code in Octave.
>
>
> I'm really sorry for this. Is there any free eigshow implementation? Those I
>  post were just the first links google point me and I didn't think they were
>  copyrighted...

I wouldn't be too apologetic. This type of petty copyright
infringement helps the Mathworks a lot more than it hurts them.
Increasing Matlab mindshare is very important for them, even if means
a few people will host illegal copies of their code.

- Jordi G. H.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jun 15, 2008 at 10:58 PM, Jordi Gutiérrez Hermoso
<jordigh@...> wrote:

> On 15/06/2008, Vito De Tullio <zak.mc.kraken@...> wrote:
>> Ben Abbott wrote:
>>
>>  > Those who monitor and respond to the inquiries on this mail-list are
>>  > proportionately developers for Octave. It is legally important for the
>>  > developers to avoid being exposed to copyrighted code. Thus it is
>>  > impractical and inappropriate for us to offer any advice regarding the
>>  > illegal use of Mathworks code in Octave.
>>
>>
>> I'm really sorry for this. Is there any free eigshow implementation? Those I
>>  post were just the first links google point me and I didn't think they were
>>  copyrighted...
>
> I wouldn't be too apologetic. This type of petty copyright
> infringement helps the Mathworks a lot more than it hurts them.
> Increasing Matlab mindshare is very important for them, even if means
> a few people will host illegal copies of their code.
>

Even though this may be true, it's not any help here. The key point is
that Mathworks can
eventually accuse some Octave developer of violating its IP rights
because proprietary code appeared previously on this list. The "sorry"
above was (IMHO) meant as an apology to Octave community, not to
Mathworks.


> - Jordi G. H.
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>



--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by james mcskimming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vito
take a look at the packages on


On Sun, 2008-06-15 at 17:34 +0200, Vito De Tullio wrote:

> Hi all.
> I'm a newbie octave user. For my exam, I need to use matlab, but I found
> octave (for linux).
> It works for all, but I need to use a function, eigshow, that's not present
> (is present in matlab). It should draw a graphic with 2 lines representing
> eigenvalues and eigenvectors...
>
> Surfing on the net, I found some implementations, but all of them gave me
> errors in octave.
>
> http://web.mit.edu/18.06/www/Course-Info/Mfiles/eigshow.m
> http://kom.aau.dk/~borre/kalman/lecture3/eigshow.m
> http://www.cs.ubc.ca/~mpf/cpsc402/downloads/eigshow.m
>
> for example the first give me
>
> octave:1> eigshow
> warning: get: invalid property `tag'
> error: `x' undefined near line 29 column 30
> error: evaluating argument list element number 2
> error: evaluating assignment expression near line 29, column 12
> error: evaluating if command near line 28, column 3
> error: called from `isequal' in file
> `/usr/share/octave/2.9.12/m/general/isequal.m'
> error: if: error evaluating conditional expression
> error: evaluating if command near line 51, column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 33, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>
>
> can you help me?
>

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: eigshow function

by james mcskimming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vito

> octave:1> eigshow
> warning: set: invalid property `numbertitle'
> warning: set: invalid property `menubar'
> error: `uicontrol' undefined near line 120 column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 40, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>

from another relative newbie, take a look at the packages on

http://octave.sourceforge.net/index.html

the jhandles package which has the uicontrol function embedded is one of many.  

as a tip I found it necessary to also install the octave-headers option for octave3.0+ if any compilation of code is necessary.
Not sure if jhandles needs it or not but just in case..

cheers
jas


On Sun, 2008-06-15 at 17:34 +0200, Vito De Tullio wrote:

> Hi all.
> I'm a newbie octave user. For my exam, I need to use matlab, but I found
> octave (for linux).
> It works for all, but I need to use a function, eigshow, that's not present
> (is present in matlab). It should draw a graphic with 2 lines representing
> eigenvalues and eigenvectors...
>
> Surfing on the net, I found some implementations, but all of them gave me
> errors in octave.
>
> http://web.mit.edu/18.06/www/Course-Info/Mfiles/eigshow.m
> http://kom.aau.dk/~borre/kalman/lecture3/eigshow.m
> http://www.cs.ubc.ca/~mpf/cpsc402/downloads/eigshow.m
>
> for example the first give me
>
> octave:1> eigshow
> warning: get: invalid property `tag'
> error: `x' undefined near line 29 column 30
> error: evaluating argument list element number 2
> error: evaluating assignment expression near line 29, column 12
> error: evaluating if command near line 28, column 3
> error: called from `isequal' in file
> `/usr/share/octave/2.9.12/m/general/isequal.m'
> error: if: error evaluating conditional expression
> error: evaluating if command near line 51, column 1
> error: called from `eigshow:initialize' in file `/home/zed/eigshow.m'
> error: evaluating if command near line 33, column 1
> error: called from `eigshow' in file `/home/zed/eigshow.m'
> octave:1>
>
> can you help me?
>

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave