Code for creating a circle with a specific radius on matlab
Contents
Drawing a circle using matlab
%Sebastian Garcia %code for shapes on Homework 1 %__________________________ %shape4 %Circle on plot
Inputs
R = inputdlg('Desired radius of circle ','s'); R = str2double(R);
Equations
p = nsidedpoly(200, 'Center', [4 3], 'Radius', R);
Plotting
plot(p,'FaceColor','w') axis equal
![](CGN_HW1_SHAPE4_01.png)
Comentarios
Publicar un comentario