Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

MATLAB Program for algebraic equations

clc;

clear all;

close all;

x=-10:0.0001:10;

 

y1=x;

subplot(231)

plot(x,y1,'r')

ylabel('Y=X')

grid on

 

y2=x.^2;

subplot(232)

plot(x,y2,'g')

ylabel('Y=X^2')

grid on

 

y3=x.^3;

subplot(233)

plot(x,y3,'b')

ylabel('Y=X^3')

grid on

 

y4=1./x;

subplot(234)

plot(x,y4,'y')

ylabel('Y=1/X')

grid on

 

y5=abs(x);

subplot(235)

plot(x,y5,'c')

ylabel('Y=|X|')

grid on

 

y6=sqrt(x);

subplot(236)

plot(x,y6,'m')

ylabel('Y=sqrt(x)')

 

grid on

 

 





Join us on Telegram: https://t.me/matlabcastor

No comments

Popular Posts

Followers