Posts

Showing posts from February, 2023

Drawing a circle in matlab

Image
  Homework01Problem2 Contents Drawing a circle using Matlab clc clear close all %------------------------------ Drawing a circle using Matlab Programmer: Ashly Pena Homework 1 - circle radius Date: 02/20/2023 %------------------------------ % INPUT radius= inputdlg( 'Input radius in inches:' , 's' ); r=str2double(radius); % convert stiring to number % Analisys pos= [r r r r]; rectangle ( 'Position' ,pos, 'Curvature' ,[1 1], 'EdgeColor' , 'b' ) %Plot axis equal Published with MATLAB® R2022b