- #1
Larrytsai
- 228
- 0
Hey guys,
I am stuck trying to create a function in matlab...
x[n] = {1 0 =< n =< 4
{0 elsewhere
so far I have this...
n = [0:4];
x[n] = 1;
but I get this error:
? x[n] = 1;
|
Error: Unbalanced or unexpected parenthesis or bracket.
and I can't figure out what is wrong.
thanks for your help.
I am stuck trying to create a function in matlab...
x[n] = {1 0 =< n =< 4
{0 elsewhere
so far I have this...
n = [0:4];
x[n] = 1;
but I get this error:
? x[n] = 1;
|
Error: Unbalanced or unexpected parenthesis or bracket.
and I can't figure out what is wrong.
thanks for your help.