Multiplying a cell array element with an element of a matrix gives wrong result

1 次查看(过去 30 天)
I have a cell array element: (a - 1)*(a - 4)
And I have a number: 0.0833
When I try to multiply them:
cellarray{this} * matrix(that)
, the result is
((a - 1)*(a - 4))/12
The expected result would be
(a - 1)*(a - 4)*0.0833
(or the calculated equivalent), but it isn't. What could be the problem and how can I achieve what is wanted?

回答(1 个)

madhan ravi
madhan ravi 2023-11-20
cellarray{this} * vpa(matrix(that))

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by