photo

Abhishek singh


Aktiv seit 2019

Followers: 0   Following: 0

Statistik

  • First Answer
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 5 Jahre vor | 9 Antworten | 0

9

Antworten

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

mehr als 5 Jahre vor | 0

Frage


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

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 5 Jahre vor | 10 Antworten | 0

10

Antworten

22

Antworten

Frage


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

mehr als 5 Jahre vor | 5 Antworten | 0

5

Antworten

Frage


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

mehr als 5 Jahre vor | 6 Antworten | 0

6

Antworten

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function too_young = under_age(age,limit) limit = 21 if age <= limit too_young = true; elseif age >= limit too_you...

mehr als 5 Jahre vor | 27 Antworten | 0

27

Antworten