Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 10 Jahre vor | 3 Antworten | 1

3

Antworten

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

fast 10 Jahre vor | 0

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort