LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2009, 10:46 PM   #1
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Rep: Reputation: 16
problem with freemat


Hi there,
I tried freemat with Windows and Debian etch erlier and in both for path setting I just included all the directories and folders related to freemat and it worked fine, but I have lenny on my laptop and freemat gives ERROR undifined function or variable even with basic function such as comb(3,7)??
Am I missing anything to include in path ??
 
Old 01-31-2009, 10:25 AM   #2
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Original Poster
Rep: Reputation: 16
Unhappy

PLEASE SOMEONE REPLY I just noticed that in my path setting I have every thing except "bin" in my usr/bin dirctory I just have continuies x11 ??? PS see the attchment
Attached Thumbnails
Click image for larger version

Name:	freemat_1.png
Views:	35
Size:	28.7 KB
ID:	58  
 
Old 01-31-2009, 02:04 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
comb(3,7)
Are you quite certain on this expression ??

I do not see it working on any OS.

Which version of FreeMat did you use on Etch ?

....

Last edited by knudfl; 01-31-2009 at 02:06 PM.
 
Old 01-31-2009, 08:05 PM   #4
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Original Poster
Rep: Reputation: 16
Well I am not quite sure of version, I netinst it and than I formated the PC now on laptop I'm running lenny , I downloaded a CD of it. I tried making a custom function just a simple one ...
Quote:
t=(-pi,pi);
x=sin(t);
and then named it chris1 and added the folder in freemat path but, didn't work, still give UNDIFINED FUNCTION OR VARIABLE error, I have attched the edited path , directories not visible in attachments are ...


Quote:
/etc/xdg
/etc/xdg/freemat

AM I MISSING ANYTHING THAT TO BE ADDED IN PATH ?? SOMETHING MUST BE WRONG WITH PATH !
Attached Thumbnails
Click image for larger version

Name:	freemat_1.png
Views:	22
Size:	11.1 KB
ID:	65  

Last edited by chrischristian; 01-31-2009 at 08:11 PM.
 
Old 02-01-2009, 03:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you want an answer for your post marked # 4 :

1) Send an email to one of the other "FreeMat users"
e.g. GTrax
http://www.linuxquestions.org/questi...t4-rcc-698965/

1a) Use " LQ Search " to find more
http://www.linuxquestions.org/questions/search.php
or
2) Start a new thread with the new question and
keep it in " zero reply " for a couple of weeks :

Please do not answer your own question, like you
did here in # 2 !

( Makes the thread more invisible )

Good luck.

Last edited by knudfl; 02-01-2009 at 05:51 AM.
 
Old 02-01-2009, 09:06 AM   #6
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
I don't think you want all the toolbox files in your path, rather they are referenced by "root=/usr/share/freemat/" in your ~/.config/FreeMat/FreeMat.conf. The best way to set this on a new installation is
Code:
FreeMat -i /usr/share/freemat/
Unless you want to retain some old command history info, I recommend wiping that FreeMat.conf file and start fresh.

Verify the exact path for your distribution - mine is in /usr/local/share, for example.
 
Old 02-01-2009, 11:22 AM   #7
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Original Poster
Rep: Reputation: 16
Can you please tell me where to find Freemat.conf ? cd into ~/.config/FreeMat gives nothing ??

What about this I find on this site


Quote:
Note that a package should not modify a dpkg-handled conffile in its maintainer scripts. Doing this will lead to dpkg giving the user confusing and possibly dangerous options for conffile update when the package is upgraded.

Last edited by chrischristian; 02-01-2009 at 11:25 AM.
 
Old 02-01-2009, 12:20 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
/home/knudfl/.config/FreeMat/Freemat.conf
example Debian Lenny
Code:
[mainwindow]
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\0\0\0\x1\x16\0\0\x1<\xfc\x2\0\0\0\x1\xfb\0\0\0\x10\0t\0o\0o\0l\0\x64\0o\0\x63\0k\x1\0\0\0\x41\0\0\x1<\0\0\0\0\0\0\0\0\0\0\x1<\0\0\x1<\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x65\0\x64\0i\0t\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0\0\0\0\0U\0\0\0\0\0\0\0\0\0\0\0\x18\0\x64\0\x65\0\x62\0u\0g\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0U\0\0\0\xbe\0\0\0\0\0\0\0\0\0\0\0\x14\0\x64\0i\0r\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\x1\x13\0\0\x1\x45\0\0\0\0\0\0\0\0)
pos=@Point(200 200)
size=@Size(600 400)
cdlist=/home/knudfl

[interpreter]
history=, % l\xf8r jan 31 12:14:22 2009, % l\xf8r jan 31 14:03:08 2009, "comb(3,9)", "comb (3,9)", % l\xf8r jan 31 14:04:34 2009, "comb (3,7", "comb (3,7)", % l\xf8r jan 31 14:08:08 2009, "comb (3,7)", % l\xf8r jan 31 14:54:44 2009, "comb (3,7)"
Ubuntu 8.04.1
Code:
[interpreter]
history=, % tor jan 22 14:24:56 2009, % tor jan 22 14:25:43 2009, % tor jan 22 14:27:30 2009, % fre jan 30 00:32:44 2009, mex, % s\xf8n feb 1 19:07:14 2009, "comb(3,7)"

[mainwindow]
cdlist=/home/knudfl, /home/knudfl/Desktop/usr/local/bin, /usr/local/bin
pos=@Point(91 182)
size=@Size(600 400)
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x1<\0\0\x1<\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x65\0\x64\0i\0t\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0\0\0\0\0U\0\0\0\0\0\0\0\0\0\0\0\x18\0\x64\0\x65\0\x62\0u\0g\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0U\0\0\0\xbe\0\0\0\0\0\0\0\0\0\0\0\x14\0\x64\0i\0r\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\x1\x13\0\0\x1\x45\0\0\0\0\0\0\0\0)
* * * The file is created, when closing 'freemat' . * * * * * * * * *
....

But, of course, if you run 'freemat' as root ( which you should never do ),
the file is made to /root/.config/....
....
....

Last edited by knudfl; 02-01-2009 at 02:11 PM.
 
Old 02-01-2009, 10:28 PM   #9
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Original Poster
Rep: Reputation: 16
I use lenny but I couldn't found that .conf file I tried apt-get purge freemat but even that has not removed freemat completely and on reinstall it comes with all that history and path, I find just tool box and binary in usr/local/share folders I REALLY NEED FREEMAT TO WORK URGENTLY AND DON'T WANT TO GIVE UP LINUX, HAVE TO HAVE A PRESENATATION ABOUT AMPLIFIER CALCULAIONS VERYSOON, I'M A NEWBI SO PLEASE HELP ME !!! THSNKS FOR REPLIES
 
Old 02-02-2009, 02:24 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
cd into ~/.config/FreeMat
Works for me in Lenny.
Please also try cd /home/chrischristian/.config/FreeMat
and next 'mc' to see the file FreeMat.conf .
Or just do 'mc' in your /home/"user" to see .config.

( mc is the Midnight Commander, a small file manager )

The history, you mention repeated, should be in FreeMat.conf only.
( Which you should be able to watch in your default file manager,
using the option 'Show hidden files'. )
....
EDIT ... try this one too : 'ls -aR | grep FreeMat.conf'
....

Last edited by knudfl; 02-02-2009 at 07:18 AM.
 
Old 02-03-2009, 09:09 AM   #11
chrischristian
Member
 
Registered: Jan 2009
Posts: 45

Original Poster
Rep: Reputation: 16
I fresh installed Debian Lenny so now just tell me after downloading .deb file exactly what I should do to install freemat in /home/freematinst directory ? FYI I'm just a newbi to linux
 
Old 02-03-2009, 10:53 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
after downloading .deb file
Which "deb" file ?

FreeMat can be installed with # 'apt-get install freemat'

....

Last edited by knudfl; 02-03-2009 at 10:55 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration