Write a function calcrectarea that will calculate and return the area of a rectangle. Pass the length and width to the function as input arguments
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:23.3
All Answers
total answers (1)
calcrectarea.m
function area = calcrectarea(length, width)
% This function calculates the area of a rectangle
% Format of call: calcrectarea(length, width)
% Returns the area
area = length * width;
end
Renewable energy sources such as biomass are gaining increasing
attention. Biomass energy units include megawatt hours (MWh) and
gigajoules (GJ). One MWh is equivalent to 3.6 GJ. For example, one
cubic meter of wood chips produces 1 MWh.
need an explanation for this answer? contact us directly to get an explanation for this answer