photo

Abhishek singh


Active since 2019

Followers: 0   Following: 0

Statistics

  • First Answer
  • Thankful Level 1

View badges

Feeds

View by

Question


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

5 years ago | 9 answers | 0

9

answers

Answered
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...

5 years ago | 0

Question


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

5 years ago | 0 answers | 0

0

answers

Question


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...

5 years ago | 10 answers | 0

10

answers

22

answers

Question


Homework: Write a function called char_counter that counts the number of a certain character in a text file.
Write a function called char_counter that counts the number of a certain character in a text file. The function takes two inpu...

5 years ago | 5 answers | 0

5

answers

Question


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 ...

5 years ago | 6 answers | 0

6

answers

Question


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 ...

5 years ago | 1 answer | 0

1

answer

27

answers