matrix of vectors in matlab (cell of arrays)

1 Ansicht (letzte 30 Tage)
AMAL targhi
AMAL targhi am 13 Jun. 2016
Bearbeitet: the cyclist am 14 Jun. 2016
This is my matrix
a = {[1 2 3 4];
[5 6 7 8];
[9 10 11 12]}
I need to calculate the exponential like that:
{[exp(1) exp(2) exp(3) exp(4) ];
[exp(5) exp(6) exp(7) exp(8) ];
[exp(9) exp(10) exp(11) exp(12)]}

Akzeptierte Antwort

the cyclist
the cyclist am 14 Jun. 2016
exp_a = cellfun(@exp,a,'UniformOutput',false)

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by