Community Profile

photo

Karnajit Banik


Last seen: 6 months ago Active since 2022

Programming Languages:
C++, C
Spoken Languages:
Bengali, English, Hindi

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
I get an error, what's wrong? on Sparse matrix logic and answer
function M = sparse2matrix(cellvec) sz = cellvec{1}; val = cellvec{2}; M = val*ones(sz); for i = 3:length(cellvec) el =...

1 year ago | 0

Answered
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.
function isvalid = valid_date(y, m, d) % Check if the inputs are valid % Check that they are scalars if ~(isscalar(y) && isscal...

1 year ago | 0