Community Profile

photo

Abhishek singh


9 2019 年以降の合計貢献数

Abhishek singh's バッジ

  • First Answer
  • Thankful Level 1

詳細を表示...

貢献した分野
表示方法

質問


sparse2matrix random error
function [matrix]= sparse2matrix(incell); X=size(incell); q=X(2)-2; msize=incell{1}; mdef=incell{2}; matrix=repmat(mdef,msi...

3ヶ月 前 | 2 件の回答 | 0

2

回答

回答済み
I get an error, what's wrong? on Sparse matrix logic and answer
function [matrix]= sparse2matrix(incell); X=size(incell); q=X(2)-2; msize=incell{1}; mdef=incell{2}; matrix=repmat(mdef,msi...

3ヶ月 前 | 0

質問


sparse 2matrix getting an error
function A=mysp2matsp(rowIdx,colIdx,entries) %% transform three-arrays sparse matrix to matlab sparse matrix nrow = size(r...

3ヶ月 前 | 0 件の回答 | 0

0

回答

質問


Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form
cellvec = {[2 3], 0, [1 2 3], [2 2 -3]}; matrix = sparse2matrix(cellvec) matrix = 0 3 0 0 -3 0 fun...

3ヶ月 前 | 0 件の回答 | 0

0

回答

1

回答

質問


Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file. The function returns charnu
function charnum = char_counter(fname,character) fid = fopen(fname,'rt'); if fid < 0 || ~ischar(character) || ~ischar(fname...

3ヶ月 前 | 0 件の回答 | 0

0

回答

質問


counting no .of temperature less than 32 in array
function numfreeze = freezing(v) count = 0; i =v() j = 32 if i < 32 count = count+1 numfreeze = count else end ...

4ヶ月 前 | 3 件の回答 | 0

3

回答

質問


finding next prime number
function k=next_prime(n) while true; n = n+1 for i in rng(2:n): if mod(n,i) == 0 break ...

4ヶ月 前 | 1 件の回答 | 0

1

回答

4

回答