I have this simple procedure in Maple that I want to plot.

```
test:=proc(n)
    local i,t;  
    for i from 1 to n do
        t:=1;
    od;
    return t;
    end:

```

The procedure itself works fine.

```
> test(19)
                               1

```

When I want to plot I get the following Error:

```
> plot(test(x),x=1..10)
Error, (in test) final value in for loop must be numeric or character

```

Please help