Kumar Shubham
Followers: 0 Following: 0
Feeds
已回答
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) %...
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) %...
4 years 前 | 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...
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...
4 years 前 | 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...
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...
4 years 前 | 0