Prev: Compute the hessian matrix numerically
Next: Arithmetic operations for a combined number of floating values and
From: enviro on 23 Feb 2010 17:04 Dear all, It maybe simple but sometimes we need sum integer values and floating values (decimals) to get a floating results. However, it seems is not that easy like other operations in MATLAB. 1000 + 0.0001 should be 1000.0001 but in MATLAB it is just a n integer value of 1000. Likewise for summing two matrices with integer values and floating ones. Do you have any idea to find a simple way to get a floating result for arithmatic operations in this case. Many thanks |