[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: multiplying variables

From: Neil.Francis
Subject: RE: multiplying variables
Date: Wed, 3 Feb 2010 12:46:20 +0800

So in matlab i wrote it as
p = (0.1:0.1:1.0)
h = p * log2 (p)

You've asked Octave(?) to multiply matrices with incompatible dimensions.  
Maybe you wanted an element-by-element multiplication - ".*"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]