how to add matrix and scalar

19 views (last 30 days)
vaya putra
vaya putra on 25 Jul 2018
Answered: vaya putra on 25 Jul 2018
Hi Matlab User i want to used how to write
pv = @(p) pv_r.+ (cr * (p - p_r) )
Unexpected MATLAB operator.
note; pv_r (matrix 1000*1)

Accepted Answer

KSSV
KSSV on 25 Jul 2018
There is no .+ operator in MATLAB. Simply use:
pv = @(p) pv_r+ (cr * (p - p_r))

More Answers (1)

vaya putra
vaya putra on 25 Jul 2018
thank you

Categories

Find more on Complex Logic in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!