FreeMat 4, problem with input function

893 views
Skip to first unread message

JL

unread,
Oct 16, 2009, 1:46:15 PM10/16/09
to freemat-devel
I have just compiled and linked FreeMat 4 on Ubuntu 9.04. I have
problems using the input function. My test program is inndata.m:

clear all;
c = 3;
b = input('b = ');

When running I get the error:

--> inndata
b = 3
In /usr/local/share/FreeMat-4.0/toolbox/io/input.m(input) at line 37
In /home/jarle/freemat/inndata.m(inndata) at line 3
In docli(builtin) at line 2
In base(base)
In base()
In global()
Error: Too many inputs to function evalin
-->

This works correctly in previous version of FreeMat. (That version is
not compiled and linked by me).

Any idea?

JL

Samit Basu

unread,
Oct 16, 2009, 11:23:43 PM10/16/09
to freema...@googlegroups.com
Hi JL,

Indeed, you have found a bug in FreeMat 4 -- we broke the "input"
function. Please file a bug report. Unfortunately, the bug appears
to be in the assignin function (used by input), so there is no
user-space workaround.. Since you are compiling from source, you can
edit

libs/libCore/Loader.cpp, line 391,

to read

context->addSpecialFunction("evalin",EvalInFunction,3,3,"workspace","expression","catch_clause",NULL);

And recompile. That should fix it (I haven't tested it yet).

Samit

Timothy Cyders

unread,
Nov 16, 2009, 9:17:05 AM11/16/09
to freema...@googlegroups.com
The fix works.

TJ

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "freemat-devel" group.
To post to this group, send email to freema...@googlegroups.com
To unsubscribe from this group, send email to freemat-deve...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/freemat-devel?hl=en
-~----------~----~----~----~------~----~------~--~---


Reply all
Reply to author
Forward
0 new messages