MATLAB: How to find the extreme points extreme pointsmaximaminimawith interval y = x(sin(x))^2 with a domain interval of [-0.5, 0.5] Have been trying to work this problem out and can't seem to figure it out.. Best Answer clc; clear all ;x = linspace(-0.5,0.5) ;y = x.*(sin(x)).^2 ;plot(x,y) ;% extreme points [x(1) y(1)][x(end) y(end)] Related SolutionsMATLAB: Plotting graph in matlab x=0:0.1:10y = exp(0.5*x).*sin(x)plot(x,y) MATLAB: How to plot multiple 3d on one graph Following code works fineinterval = [-5:0.1:5];x = -5:0.1:5;y = -5:0.1:5; [X,Y] = meshgrid(x,y);z1 = acos((cos(interval)+cos((interval).')));z2 = acos(-(cos(interval)+cos((interval).')));figure(1);plot3(X,Y,z2)hold onplot3(X,Y,z1) Related QuestionHelp to plot a Surface plot of: z = y sin x – x cos yRemoving Extreme Value from ColorbarHow to plot this function
Best Answer