Help translating this expression to Matlab
Show older comments
[𝑒3𝑡 + 𝑡2 sin(4𝑡)]𝑐𝑜𝑠2(3𝑡)
Answers (1)
Star Strider
on 20 Feb 2021
My best guess:
y = (exp(3*t) + t.^2.*sin(4*t)).*cos(3*t).^2;
or as an anonymous function:
y = @(t) (exp(3*t) + t.^2.*sin(4*t)).*cos(3*t).^2;
.
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!