photo

SANTOSH KAMBLE


Last seen: plus de 4 ans il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
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 ...

plus de 4 ans il y a | 0

Réponse apportée
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=...

plus de 4 ans il y a | 4