Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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.

oltre 8 anni fa | 1 risposta | 0

1

risposta

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

oltre 8 anni fa | 1

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

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

quasi 9 anni fa | 0

| accettato

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Carica altro