The if statement did not work for x =1.
Their is a function for this already.
iscolumn(x)
I guess this exercise is about learning that this function exists.
Sum all integers from 1 to 2^n
8435 Solvers
Set some matrix elements to zero
290 Solvers
Create a Multiplication table matrix...
283 Solvers
315 Solvers
Convert given decimal number to binary number.
640 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!