photo

RAGHAVENDRA


Last seen: 30 jours il y a Actif depuis 2014

Followers: 0   Following: 0

Message

Statistiques

All
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

2

réponses

Réponse apportée
I want to add a 20 by 20 matrix to a 50 by 50 matrix ? the resuting matrix should be of 50 by 50 .
A=5*ones(50) B=zeros(50); B(1:20,1:20)=2*ones(20); C=A+B;

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to arrange rows of a matrix to get a specific column in order?
You can do the following way: let us say i want to sort X according to 5th column, then: X=randi(5,[10 10]);% 10X10 ra...

plus de 9 ans il y a | 0

Réponse apportée
Central part of a matrix
M_central=M(floor(size(M,1)/2)-floor(s/2):floor(size(M,1)/2)+floor(s/2),floor(size(M,2)/2)-floor(s/2):floor(size(M,2)/2)+floor...

plus de 9 ans il y a | 0

Réponse apportée
how to delete all the elements from the matrix?
Are you trying to make the matrix as null matrix or want to replace the elements with zeros(erasing the values). In the former c...

plus de 10 ans il y a | 0

Réponse apportée
How to create a matrix from a for loop answer?
In addition to the Walter Roberson’s advice. I would like to say that. As per your program at line 45: _if y<0 y=0; end...

plus de 10 ans il y a | 0