Untitled

user_6710072 avatar
user_6710072
plain_text
01/26/2023 5:15 PM
524 B
17
Indexable
(1)To Plot the CircleMatlab
Code
clc
clear all
syms r a b
r= input(‘Enter the radius of the circle’)
a= input(‘Enter the x coordinate of the center’)
b= input(‘Enter the y coordinates of the center’)
t = linspace(0, 2*pi, 100);
x = a+r*cos(t);
y = b+r*sin(t);
axis equal
plot(x, y)
xlabel(‘x-Coordinate’)
ylabel(‘x-Coordinate’)
title(‘(x−a)2+ (y−b)2=r2’)


Output
Editor is loading...