MATLAB: How to write the following function in Matlab help me please help me. i want this function to solve following optimization problem. can you help me? Best Answer function r = rho(r,c) r = c^2/6 .* ones(size(r)); mask = abs(r) <= c; r(mask) = c^2/6 .* (1 - (1 - r(mask)./c).^2).^3); Related SolutionsMATLAB: Help with matrix operations, if statements S = R / 0.02;mask = R > 0.02;S(mask) = R(mask) * 10; MATLAB: How to take a “for loop” answer and put it to an “if” statement command mask = R ~= 0;R(mask) = R(mask) + 1; Related QuestionHow can i write this codeExtract MatrixHow to extract color feature of an image without extracting white color
Best Answer