Media Summary: Angle brackets are not allowed in Description , so code is given in comment section. Code: figure; axis([-7 3 -2 2]); pause(1); pause(1); hold on; t=0:2*pi/3:2*pi; x=cos(t); y=sin(t); x1=[x(1) x(2) -1 0 -1 x(3) x(1)]; y1=[y(1) ... Code : clc clear all close all x=input('Enter the number:'); k=1; l=x; y=[]; a=[]; while(k~=l) for i=1:x if(i==k i==l) a(i)=1; else a(i)=0; ...
Matlab Tutorial Drawing An Arrow - Detailed Analysis & Overview
Angle brackets are not allowed in Description , so code is given in comment section. Code: figure; axis([-7 3 -2 2]); pause(1); pause(1); hold on; t=0:2*pi/3:2*pi; x=cos(t); y=sin(t); x1=[x(1) x(2) -1 0 -1 x(3) x(1)]; y1=[y(1) ... Code : clc clear all close all x=input('Enter the number:'); k=1; l=x; y=[]; a=[]; while(k~=l) for i=1:x if(i==k i==l) a(i)=1; else a(i)=0; ... Code: figure; hold on; axis([-2 52 -2 2]); axis equal; pause(10); for i=0:2:50 t=0:2*pi/3:2*pi; x=cos(t); y=sin(t); x1=[x(1) x(2) -1 0.2 -1 ... Learn the essentials of plot formatting in Get more lessons like this at Learn how to plot any function on an x-y plan (Cartesian plan) in ...