Getting error: Cannot use arguments in a call to a script.

114 views
Skip to first unread message

ldp415

unread,
Aug 9, 2014, 1:45:44 PM8/9/14
to fre...@googlegroups.com
Hi,

  I am just learning Freemat and am running into this error while running the simple script:

l = input('Enter your answer: ','s')

if l == 'y' || l == 'Y'

disp('Ok, continuing.')

elseif l == 'n' || l == 'N'

disp('Ok, halting.')

else

disp('Error!')

end


I believe it is because I am using the character input on line 1. When I just make it:  l = input('Enter your answer: '), it runs ok. I have also run into this problem with other scripts that require the user to input a character. Ive tried re-installing Freemat, rebooting my computer, and renaming the files with no luck.


Can anyone help me with this?

Thank you!

Luke


Reply all
Reply to author
Forward
0 new messages