code_junkie

Why do I get this error when multiplying two 2 vectors in MATLAB?

Nov 12th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. alpha =
  2. 1 1 1 1 1 1 1 1 1
  3.  
  4. f_uv =
  5. 193 193 194 192 193 193 190 189 191
  6.  
  7. alphaf_uv = alpha * f_uv'
  8.  
  9. "??? Error using ==> mtimes
  10. Integers can only be combined with integers of the same class, or scalar doubles."
  11.  
  12. alphaf_uv = double(alpha) * double(f_uv')
Add Comment
Please, Sign In to add comment