Can I creat Z in a single statement which doesn't require explicit calculation of each element or should I just use a loop?
Z = [ A*exp(B*X(1)), A*exp(B*X(2)), A*exp(B*X(3)), A*exp(B*X(4)) ... , A*exp(B*X(5)), A*exp(B*X(6)), A*exp(B*X(6)) ];
building a matrix from calculated elements
Z = [ A*exp(B*X(1)), A*exp(B*X(2)), A*exp(B*X(3)), A*exp(B*X(4)) ... , A*exp(B*X(5)), A*exp(B*X(6)), A*exp(B*X(6)) ];
Best Answer