How to add a single number to a 1*2401 matrix?

1 次查看(过去 30 天)
I'm trying to add my valu dragZeroLift = 0.0351 and my dragInduced matrix
Then the Matlab gives me erro like this:
Matrix dimensions must agree.
Error in dragCalc (line 4)
totalDrag = dragInduced + dragZeroLift;
Can you help me add 0.035 to each element in the dragInduced martix?
Thank you!
  2 个评论
Felix Hao
Felix Hao 2020-4-21
Sorry I don't know what whos is, But can you tell me how to do it? I just need to add 0.035 to every element in that matrix.
Thank You!!

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2020-4-21
If A is array and k is constant.
iwant = A+k;

更多回答(0 个)

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by