values calculated from avector

1 view (last 30 days)
saja mk
saja mk on 13 Oct 2020
Answered: Sudhakar Shinde on 13 Oct 2020
s=[a b]
how can calculate s1 and s2, if s1=exp(a)and s2=exp(b)?

Accepted Answer

Sudhakar Shinde
Sudhakar Shinde on 13 Oct 2020
exp fumcion is available in matlab. The s1 & s2 syntax you written can directly be used.
s=[a b];
s1=exp(s(1));
s2=exp(s(2));

More Answers (0)

Categories

Find more on Get Started with MATLAB 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!