Pregunta


How can i replace elements from first matrix to second without changing the size of second matrix?
I have a matrix A=[1 3 4 6]; and B=[1 5 6 9 10 12 18]; the length of A is 4 and B is 7. Now i want to chang...

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


why legend for multiple matrix is not showing the appropriate data?
I have 6 matrix as A=rand(10,10),B=rand(10,10),C=rand(10,10) and a=rand(10,10),b=rand(10,10),c=rand(10,10). i want to plot all e...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to replace elements of a matrix position wise?????
I have a matrix: A=[1 1 0 1; 1 0 1 1; 1 0 0 0; 0 1 0 1] now the elements of 3rd and 4th column i want to change ...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how shall i keep the particular position of a column of a matrix to to repeat for all other columns?????
this is a code :::: a1=rand(10,10); a=a1(:,1); a=a'; c=ceil(a); %% when err=1 err=1; maxValueRowWise=max(...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to find maximum value from a matrix then add a value to it and then replace that in the same matrix?
I have a matrix a=rand(4,10), 1)i want to find the maximum or the highest value in matrix a. 2)add 0.001 to that highest valu...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How total of column of a matrix can be kept be same????
If I have a matrix A A=[ 0.4000 0.6000 0.8000 0.8000 1.0000 1.6000 0.9333 1.2333 0.0000 0.0000; 1....

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to check negative values are there or not in a matrix????
i have a matrix a=[0.2 0.1 -0.1 0 0.9], now i want to check whether there is any negative value if yes then those element i want...

casi 10 años hace | 3 respuestas | 1

3

respuestas

Respondida
how to select higher value in a matrix and change that by introducing an error?
thank u so much....ya i got it now....thank u so so so much...

casi 10 años hace | 0

Pregunta


how to select higher value in a matrix and change that by introducing an error?
I have a matrix, a= [ 0.83 0.85 0.97 0.1 0.95 0.93 0.2 ; 0.2 0.12 0.12 0.76 0.77 0.78 0.25 ; 0.88 0.32 0.11 0.77...

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to stop from running a program whenever any of the element become zero or gets negative?
i have a matrix A=rand(m,n); B=1-A; so when B is running in a loop for 100 times i want to end the matrix once any of the elemen...

casi 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how shall i compare and carry the first column element to other column?
i have a matrix A=[1 1 0 1; 1 0 0 1; 1 1 1 1] but it must be AA= [1 1 0 1;1 1 0 1;1 1 0 1] so by compar...

casi 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


how to add and substract manually in a matrix?
I have a matrix like A=[1 1 0.7 1 0.7 1 1 1 1 1 0.7 1] now i want to addition of each column to ...

casi 10 años hace | 1 respuesta | 0

1

respuesta