MATLAB: How to replace every element of a matrix with a special character to hide the element hide matrix I have a nxn matrix and want to hide the elements and replace them with a special character Example 1 2 34 5 67 8 9 is now * * ** * ** * * Best Answer x = magic(3); y = repmat('*',size(x)); disp(y); Related SolutionsMATLAB: How to combine multiple columns into a single column A=[ 1 2 3 4 5 6 7 8 9 1 2 3] out=A(:)orout=reshape(A,[],1) MATLAB: Element to element sum X(1:end-1)+X(2:end) Related QuestionSum of specific elements in a column matrixElement by Element MultiplicationHide multiple ‘edit text’Element by Element Subtraction
Best Answer