SANTOSH KAMBLE
Followers: 0 Following: 0
Feeds
已回答
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A
function summa=halfsum(x) [row col]=size(x); summa=0; for r=1:row for c=1:col y=x(r,c); if r<=c ...
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A
function summa=halfsum(x) [row col]=size(x); summa=0; for r=1:row for c=1:col y=x(r,c); if r<=c ...
4 years 前 | 0
已回答
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid. If any of the inputs is not
function [valid]=valid_date(year,month,date) y=year;m=month;d=date; if ~isscalar(y)|| ~isscalar(m) || ~isscalar(d) valid=...
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid. If any of the inputs is not
function [valid]=valid_date(year,month,date) y=year;m=month;d=date; if ~isscalar(y)|| ~isscalar(m) || ~isscalar(d) valid=...
4 years 前 | 4