I am looking for what is the meaning of u(1:1+int,1) ? I searched but i wasn't able to find what is this and purpose. I thought it is incrementing first row for each step. Am I wrong? Thank for your help..
Best Answer
u(1:1+int,1) this type commands represents unit step where 1+int depends on and interval increment by one and its usage by (for ....)
"Arithmetic operations that involve both integers and floating-point always result in an integer data type. MATLAB rounds the result, when necessary, according to the default rounding algorithm."
And, yes, this is not the way many other languages (e.g., Fortran, C/C++, etc) do this.
Best Answer