values calculated from avector

1 次查看(过去 30 天)
s=[a b]
how can calculate s1 and s2, if s1=exp(a)and s2=exp(b)?

采纳的回答

Sudhakar Shinde
Sudhakar Shinde 2020-10-13
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));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by