MATLAB Answers

Evaluating Function at Matrix ?

11 views (last 30 days)
Omar B.
Omar B. on 26 Jan 2020
Commented: Omar B. on 26 Jan 2020
How can we evaluate the following function at matrix A?

Accepted Answer

Walter Roberson
Walter Roberson on 26 Jan 2020
F = @(x) exp(5*pi*(x-0.5)./(7*0.5)) .* (cos(5*pi*(x-0.5)./(7*0.5)) - sin(5*pi*(x-0.5)./(7*0.5)));
A = randn(11,5);
Omar B.
Omar B. on 26 Jan 2020
Thank you so much.

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!