thanhlamcltv91 / addi

Automatically exported from code.google.com/p/addi
0 stars 0 forks source link

for loop #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a file called testfunc.m
2. Paste the following code into the file:

function t=testfunc(list)
t=0;
for m=list
    t=t+m;
end

3. Navigate in addi to the directory where testfunc.m is located
4. Call testfunc([1 2 3])

What is the expected output? What do you see instead?

Expected Output:
ans = 6

What do you see instead?
???testfunc([1 2 3])
ERROR: null

What version of the product are you using? On what operating system?
Addi 1.84
Android OS, v2.3 (Gingerbread)

Please provide any additional information below.
Assigning a variable with a row vector, and using it in a for loop leads to an 
error with errormessage null. 

Original issue reported on code.google.com by TristanB...@gmail.com on 14 Nov 2011 at 10:23

GoogleCodeExporter commented 8 years ago

Original comment by corbi...@gmail.com on 16 Nov 2011 at 6:36