create a script for w = x^2cos(1/x)

2 views (last 30 days)
James Water Bird
James Water Bird on 25 Feb 2021
Edited: KALYAN ACHARJYA on 25 Feb 2021
x = linspace(-1,1,100)
what is w
  1 Comment
KALYAN ACHARJYA
KALYAN ACHARJYA on 25 Feb 2021
Edited: KALYAN ACHARJYA on 25 Feb 2021
w is the output result.
x = linspace(-1,1,100);
w=x.^2.*cos(1./x);
plot(x,w);
Do google MATLAB Onramp

Sign in to comment.

Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!