How to print single values of a matrix in matlab. I am using a while loop to read the matrix and print only positive values using an if condition. But with all my trials, it matlab always ignores the if conditions and displays all the values. Is there a way to force to print only the specific values.
MATLAB: If I have a matrix My matrix is: BB = [-1 5 6;4 -3 2;5 6 -7]. How to print only positive values using a while loop
if statementMATLABmatrixwhile loop
Related Question
- Creating [-1 1] matrix given length n
- Three variable together in one loop in different size
- Use nested loops and formatted print statements to reproduce the following printed table of numbers.
- How to generate matrix with one loop
- Create matrix with double rows of [-1 1]
- Dynamically arrange the matrix in each for loop
Best Answer