function [v] = int_col(n)v = rand([n;-1;1]);end
in command window
int_col(6)Error using randSize vector should be a row vector with real elements.Error in int_col (line 2)v = rand([n;-1;1]);
i have no idea whats wrong in this program
i want to create a column matrix of column n values must be less than n and greater than 1
Best Answer