[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help how do I multiply a scalar by a cell (element) and store in a scala
From: |
Jerry Baucum |
Subject: |
help how do I multiply a scalar by a cell (element) and store in a scalar |
Date: |
Sun, 9 Sep 2012 15:37:41 -0500 |
Hi,
I know this sounds stupid but I've just spent three hours searching
the internet trying to figure out how to:
Sample =
{
[1,1] = -0.12300
[1,2] = 0.23400
}
value = pi * Sample(1,2)
I'm running up against the error
error: binary operator `*' not implemented for `scalar' by `cell' operations
I've tried many different perturbations of the above to no avail.
All I want to do is take an element from a matrix, multiply it by pi
and save it in a scalar variable. WTF?
--
Jerry
- help how do I multiply a scalar by a cell (element) and store in a scalar,
Jerry Baucum <=