values calculated from avector

1 Ansicht (letzte 30 Tage)
saja mk
saja mk am 13 Okt. 2020
Beantwortet: Sudhakar Shinde am 13 Okt. 2020
s=[a b]
how can calculate s1 and s2, if s1=exp(a)and s2=exp(b)?

Akzeptierte Antwort

Sudhakar Shinde
Sudhakar Shinde am 13 Okt. 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));

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by