Entradas

Mostrando entradas de febrero, 2023

Code for creating a circle with a specific radius on matlab

Imagen
CGN_HW1_SHAPE4 Contents Drawing a circle using matlab Inputs Equations Plotting 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 Published with MATLAB® R2022a