Community Profile

Contact

Top 5% contributor

For simplicity, I have A=[ 11 7 10 9 6 4 3] and B=8 I want to have a for loop to compare each of the elements in ...

2 Answers

0

Asked 1 year ago

Hi,I have a=[1 2; 3 4; 5 6;7 8]; Suppose I want my result to have two sets of number, which set 1 is [1 2; 3 4; 5 6] and ...

Hi everyone, I have id=[ 1 3 2; 2 6 4; 3 2 6; 4 5 1; 5 1 3; 6 4 5; 7 7 7] j=1:3 I want to reorder the rows of id by sor...

Hi everyone, I have b=[1 1 1; 1 2 4; 1 3 9; 1 4 16] and k=1:5, I want to have 4 different set of numbers. There are total 4 r...

Hi, I have n=6 and for example I have several set of points ( with 6 elements), a=[1 5 1 6 2 6]; b=[2 5 1 6 2 5]; c=[3 5...

1 Answers

Asked 9 months ago

Hi I have n=5, and I will get a set of points for example a=[ 3 1 4 2 5]; which the elements are from 1 to 5 without rep...

3 Answers

Hi, How am I going to make an array that consists of first 10 prime numbers that are greater than 4 as follows? a=[5 7 11...

Asked 10 months ago

Hi, primes(25) gives me the prime numbers that are less or equal to 25. What if i want to find primes numbers that are ...

Hi, I have a=[ 1 2; 3 4; 2 1; 4 5; 5 3] I want to choose randomly any 2 entries from a colum...

Hi, I have a= 1 1 1 2 1 2 1 2 1 1 1 2 b=unique(a,'rows'); >>b= ...

Asked 11 months ago

Hi I have a= 4 3 2 1 4 3 1 2 4 2 3 1 I want to know the absolute differe...

Hi I have a= 1 2 3 1 2 3 2 3 3 2 1 1 I want to detect whethe...

Asked 12 months ago

Hi, I have a=[1 1 2], I want to know all the possible arrangements of a, then I do the permutation which gives me: >...

I have an output shows me: udd = [4x2 double] [4x2 double] where udd{1}= 1 2 2 4 ...

Hi, I have a=[1 2 3 4; 5 6 7 8; 9 10 3 4] b=[4 5 7] I want to substitute b to my second column of a to be...

Hi, I have id = [ 1 3; 2 6; 3 2; 4 5; 5 1; 6 4; 7 7]; I will get two new_ids by sorting its column, for col=1:c ...

Hi, I have a=[4 5; 5 1; 6 4; 7 7] I want to relabel the elements in each column according to the magnit...

Hi， I have a=[1 2; 3 4; 5 6]; for m=1:4 if m<=2 b=a([2 3],:) else c=a([1 2],:) ...

Hi everyone, i have c= 1 1 1; 2 4 8; 3 9 27; 4 16 64 I extracted each row by c(1,:), c(2,:), c(3,:) and c(4,:). I wa...

Hi everyone, suppose i have a=1,2,3,4 and j=1,2,3 I want to get 1^1, 1^2, 1^3, 2^1, 2^2, 2^3, 3^1, 3^2, 3^3, 4^1, 4^2 and 4^3....

Hi I have two arrays: a=[ 1 2 3 5 6 7 8 9 100]; b=[1 2 3]; I want to eliminate the elements in b from a and gives me:...

Hi, I have tao=1000; v=0.9; T1=0.01; I want to have a geometric sequence T, where T1=T2=T3...=T1000 ( since tao=1000...

function cut=UDcutcut(n,s,p) initial=[ 1 3;2 6; 3 2; 4 5; 5 1; 6 4; 7 7]; [r s]=size(initial); new_initial=cell(s,1); UT...

Hi, I have id=[ 1 3 2; 2 6 4; 3 2 6; 4 5 1; 5 1 3; 6 4 5; 7 7 7]; I want to give a name to each of the elements in id, c_kj...

Hi, I have a function function ces=mat(UT) U=UT; [n,s]=size(U); X=(2*U-1)/(2*n); cs1=zeros(n,1); for k=1:n CSP=1; ...

Hi, I wish to get all the possible arrangements for n=10 and more,I used permutation and the output shows me: >> perms(1:10)...

Hi, I have A=[2 3 4 1 1 4 3 2 5 5]; I want have the all possible arrangements, w...