Thanks CaptainBlack, I think I've got most of them now... Any idea as to what the last one is though?
Originally Posted by CaptainBlack
(c) Write a Matlab function to count the number of positive values in an
(d) Write a Matlab function that returns
true if a matrix contains only
(e) Write a Matlab function that returns true is an input argument is not
a numerical array.
(f) There are problems with the following Matlab code.
ans = 5 + 10;What is wrong with this code?
6 + 1;
% Must loop for exactly 15 elements (use ans)
for k = 0:1:ans-1
vec[k] = k;