Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 3 answers | 1

3

answers

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

meer dan 10 jaar ago | 0

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 10 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer