Question


How to generate Combination of special sets and subsets
a = [100, 125, 150, 175, 200, 225, 250, 275, 300, 325]; %Initial Guess Fx(:,:,1) = [100, 125, 150, 175, 200, 225, 250, 275,...

meer dan 6 jaar ago | 2 answers | 0

2

answers

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

meer dan 6 jaar ago | 1 answer | 0

1

answer

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.

meer dan 6 jaar ago | 1 answer | 0

1

answer

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

meer dan 6 jaar 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 ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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

meer dan 6 jaar ago | 2 answers | 0

2

answers

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

meer dan 6 jaar ago | 1 answer | 0

1

answer

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

meer dan 6 jaar ago | 1 answer | 0

1

answer

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

meer dan 6 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 2 answers | 0

2

answers

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 2 answers | 0

2

answers

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

Question


How to cut and add values from every iteration. Please Help
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...

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 2 answers | 0

2

answers

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 2 answers | 0

2

answers

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

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar 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]; ...

bijna 7 jaar ago | 1 answer | 0

1

answer

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

bijna 7 jaar ago | 2 answers | 0

2

answers

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

bijna 7 jaar ago | 1 answer | 0

1

answer

Load more