Community Profile


Kumar Shubham

Last seen: 8 meses hace Con actividad desde 2020


  • Project Euler I
  • CUP Challenge Master
  • Community Group Solver
  • Introduction to MATLAB Master
  • First Answer
  • Solver

Ver insignias

Content Feed

Ver por

Matlab Text file I/o
after hours i was able to come up with the code that passes test cases. function charnum = char_counter(filename,character) %...

casi 3 años hace | 0

I get an error, what's wrong? on Sparse matrix logic and answer
function matrix = sparse2matrix(cellvec) %creates matrix of req. size. matrix=zeros(cellvec{1}); %allots assigned scalar valu...

casi 3 años hace | 0

Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.
function [summa, index]= max_sum(v,n) if n > length(v) summa = 0; index = -1; return; elsei...

alrededor de 3 años hace | 0