A simple function that used to run now gives an error message. What am I doing wrong?
>> a = eye(4,4);>> diag(a)Subscript indices must either be real positive integers or logicals.>>
diag
>> a = eye(4,4);>> diag(a)Subscript indices must either be real positive integers or logicals.>>
Best Answer