Anthony, looking good. Put the code into a function and useinputdlg to allow inputting the numbers more easily. Alternatively, you could simply let the user define the matrixX and use it as an input for the function.
function Y = my_sig()
prompt = {'Input dialog'};
name = 'Input dialog';
Xcell = inputdlg(prompt, name);
X = str2num(Xcell{1});
Y = zeros(size(X));
for ii = 1:numel(X) % loop through all elements of the vector
Best Answer