1 2 3 4 5 6 7 8 9 10 11 12
//A=b*h/2 clear; clc; close; //A= the area of triangle.b=the length of base.h=the corresponding altitude // A depends on both b &h mprintf("\n A=k*b*h \n ") k=1/2