Menu

#549 input() function

v4.1 (minor)
open
nobody
M-Files (31)
5
2012-04-17
2012-04-17
No

Given the following example code.

%test.m
x=input('input x:');
y=input('input y:');
a=x*y

When called from the command window, both prompts work correctly. When executed from M code editor, using Execute Current Buffer, the first prompt is skipped.

Discussion

  • Jehanzeb Khan Pathan

    Please note that the following debug message is printed in the Debug window:
    18:14:28.442: JIT compile failed:"Call to function getline is not JIT-safe" at line 32 of "C:/Program Files (x86)/FreeMat/toolbox/io/input.m"

    I am also facing the exact same problem. Tested with FreeMat 4.1.1 installer and also FreeMat Portable 4.1 from PortableApps.com
    The input command works perfectly on the prompt but when executed from a .m file, it displays the above error message.

     
  • Jehanzeb Khan Pathan

    Some more details. The test was run on Windows 7 64bit

     

Log in to post a comment.