Question

I have 3*3*20 matrix and 1*1*20 matrix. how to multiply. I have multiply q and za
q(:,:,1:20); %3*3 Matrix za(1:20); % 1*1 Matrix How to multiply q and za. Error using q*za or q.*za

más de 6 años ago | 1 answer | 0

### 1

Question

I have to multiply 3*3 and 3*1 array. i am getting error using "curvatureqi=bsxfun(@times,q,curvature);" this is giving 3*3 matrix but i need 3*1 matrix in every layer or loop. please help
q = [3*3] Matrix where q = q(:,:,1:20) curvature = [3*1] Matrix where curvature is single matrix.

más de 6 años ago | 1 answer | 0

### 1

sorting specific columns of a matrix
out = sort(a, 'descend'); for ascending order sort(a, 'ascend');

más de 6 años ago | 1

Question

How can i find deleted rows from matrix??
x0 = [2 3 2 2 2; 2 3 2 2 2; 2 4 1 2 2; 2 4 1 2 ...

más de 6 años ago | 1 answer | 0

### 1

Question

Is it possible to find corresponding row from other matrix's row??
y = [ 90 90 -45 0 0 45 45 0 -45 15 15; 90 90 -45 0 0 45 45 0 -45 ...

más de 6 años ago | 2 answers | 0

### 2

Question

How to generate 500 permutations of any vector length 20? I am getting error
y = [45 45 45 45 45 45 0 0 30 30 0 0 0 0 45 45 45 45 45 45]; [count,element] = hist(y,unique(y)); N1 = 5000; x1 = permute(...

más de 6 años ago | 1 answer | 0

### 1

Question

How to find unique elements from every row within matrix??
y = [ 90 90 -45 0 0 45 45 0 -45 15 30 -30 75 -45 75 -75 90 90 -45 ...

más de 6 años ago | 1 answer | 0

### 1

Question

How to control number of element or number of unique element in Matrix?
x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0];%Initial guess a = unique(x); % unique elemen...

más de 6 años ago | 1 answer | 0

### 1

Question

How can i find value tends to zero. means value near by zero.
l(:,:,1) = -0.2881 l(:,:,2) = -0.2823 l(:,:,3) = -0.2775 l(:,:,4) = -0.2767 l (...

más de 6 años ago | 1 answer | 0

### 1

Question

How to search row and delete row?
x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0];%Initial guess a = unique(x); % unique elements ...

más de 6 años ago | 2 answers | 0

### 2

Question

How to replace and interchange values?
x= [15 30 45 60 -45 -30 0 90 15 30 45 60 -45 -30 0 90 15 45 60 -45 -30 0]; a = unique(x); %Last column of x replaced b...

más de 6 años ago | 1 answer | 0

### 1

Question

"Subscripted assignment dimension mismatch" Please correct my program. tell me idea/logic to make sequence
s = [30 30 30 30 30 30 0 0 0 0]; s = sort(s, 'descend'); %sorting sequence s uniques = unique(s); % finding unique elements ...

más de 6 años ago | 2 answers | 0

### 2

Question

Can anyone improve my program for generate permutations??
a = [20 20 20 20 20 20 10 10 10 10]; a1 = unique(a); a2 = perms([a1,fliplr(a1), a1]); p1 = [a2 , fliplr(a2),a2 , fl...

más de 6 años ago | 1 answer | 0

### 1

Question

How to eliminate rows??
a = [30 30 30 10 10 0 0 10 20 20]; a1 = unique(a); a2 = perms([a1,fliplr(a1)]); p1 = [a2 , fliplr(a2),a2 , fliplr(...

más de 6 años ago | 1 answer | 0

### 1

Question

How to generate permutations? by increase or decrease no. of unique values??
a = [30 30 30 0 0 10 10 10 20 20]; unique(a) ans = 0 10 20 30 I want to generate some permut...

más de 6 años ago | 1 answer | 0

### 1

Question

how to combine two matrix?
example1=[25 20 30 40 50 60 70 80 90]; ex_perm = reshape((perms(example1))', 1,size(example1,2),[]); I want [example...

más de 6 años ago | 1 answer | 0

### 1

Question

How to convert cell into mat by single command?
[1x9 double] [1x8 double] [1x7 double] Columns 4 through 6 [1x6 double] [1x5 double] [1x4 double] ...

más de 6 años ago | 1 answer | 0

### 1

Question

p = [90 90 -45 0 0 45 45 0 -45]; p1 = p; %store temporary copy of p p_descend = sort(p, 'descend'); p_ascend = sort(p,'ascen...

más de 6 años ago | 1 answer | 0

### 1

Question

How can i generate multiple values?
Actually i want to generate it to a1 = d(1,1,:); a2 = d(1,2,:); a3 = d(1,3,:); a4 = d(1,4,:); a5 = d(1,5,:); a6 = ...

más de 6 años ago | 2 answers | 0

### 2

Question

How to generate automatically multiple symbolic values??
i want to generate for 30 values. because i have to store it to array. a(1) = [a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 ...

más de 6 años ago | 1 answer | 0

### 1

Question

How to convert cell array to 3D array. I want to convert cell to mat
pu pu(:,:,1) = [5x9 double] pu(:,:,2) = [4x8 double] pu(:,:,3) = [4x7 double] p...

más de 6 años ago | 1 answer | 0

### 1

Question

How to rename array layer number or iteration no.
I have an array layer1 = 90 90 -45 0 0 45 45 0 -45 90 90 -45 0 0 45 ...

más de 6 años ago | 1 answer | 0

### 1

Question

How to cut and reshape values?
out = Columns 1 through 5 90 90 -45 0 0 90 90 -45 0 0 90 90 -45 0 ...

más de 6 años ago | 2 answers | 0

### 2

Question

How to interchange/swap variable in matrix and store it to different variable.
p = [90 90 -45 0 0 45 45 0 -45]; p1 = p; %store temporary copy of p idx = [true diff(p)~=0]; q = p(idx); idx = fliplr([...

más de 6 años ago | 1 answer | 0

### 1

when i apply limit(x^3-6*(x-sin(x)))/(6*(x^4)*sin(x)), i am getting: ans = 0; but correct ans. is 1/120; Am i doing something wrong?can i replace x by theta?
syms x a = limit(( (x^3)- 6* (x - sin(x)))/(6* ((x^4))* sin(x)))

más de 6 años ago | 0

| accepted

Question

How can i find positions of sorted/unique values.
p = [90 90 -45 0 0 45 45 0 -45]; q = p; q(1+find(q(1:end-1)==q(2:end))) = []; q = [90 -45 0 45 0 -45]; ...

más de 6 años ago | 1 answer | 0

### 1

Question

How to find unique value in serial order??
I have a matrix p = [90 90 -45 0 0 45 45 0 -45]; i want unique values in serial order from right side q = [90 -4...

más de 6 años ago | 2 answers | 0

### 2

Question

How to interchange values in matrix
I want to interchange matrix. A = [ 1 5 5 2 5 3 5 4 9 7 8 6 6 4]; i want it to interchange with with last unique value. ...

más de 6 años ago | 1 answer | 0