Interesting. [d==1] has a Cody size one greater than (d==1). Any thoughts as to why?
The brackets are the operation "conatenate elements" so it is interpreted as an extra operation. The expression [1:10] has the same meaning (result) as (1:10) but in the first case you have done an extra operation (not necessary in this case). On the same way you can use [1 5] but if you use (1 5) you become an error because there is no concatenation with simple parenthesis.
Nice. Thanks for the explanation, J.R.
How to find the position of an element in a vector without using the find function
2478 Solvers
Reverse the Words (not letters) of a String
297 Solvers
Sum all integers from 1 to 2^n
8428 Solvers
253 Solvers
994 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!