I have a matrix full of zeros. I would then like to change one 0 at a time to the value one. It has to be me deciding which element I would like to change. I have tried the following:
classdef project < handle
properties
scheme
end
methods
function obj = project(antpro,antmed)
obj.scheme = zeros(antpro,antmed);
end
function obj = AddEmployee(pronav,mednav)
% Function adding a employee to the scheme
obj.scheme(pronav,mednav) = 1;
end
end
end
I hope it is somewhat clear what I want to do. When I run this code i get the message: "Undefined function 'AddEmployee' for input arguments of type 'double'."
I really do not understand this, as all my files are located in the same folder, and that it is the path for my matlab session.
Thank you in advance /Lasse