提问


How can i combined array automatically
a = [100, 125, 150, 175, 200, 225, 250, 275, 300, 325]; for k = 1: numel(a) Fx{:,:,k} = a(k:numel(a)) end ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 2 个回答 | 0

2

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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.

8 years 前 | 1 个回答 | 0

1

个回答

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

8 years 前 | 1

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 2 个回答 | 0

2

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

8 years 前 | 2 个回答 | 0

2

个回答

提问


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

8 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

提问


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

9 years 前 | 2 个回答 | 0

2

个回答

加载更多