Question


Array manipulation: Suppose you have an array.How to take windows with overlapping along column and repeat to next doing same
for example a= [1 2 3 4 5; 4 7 9 1 5; 8 7 3 2 1; 3 2 9 1 7] so what is requ...

7 years ago | 1 answer | 0

1

answer

Question


if a=[1,2,3,4] how can i get b=[ (1+2),(1+3),(1+4),(2+3),(2+4),(3+4) ] using for loops,Thanks
a=[1,2,3,4] b=[ (1+2),(1+3),(1+4),(2+3),(2+4),(3+4) ]

7 years ago | 2 answers | 0

2

answers

Question


How to take elements row wise or column wise in a 2d array
A is a 5*5 array. Its needed to take 7 elements along the 1st column and 2 from the beginning of 2nd column.So the window size ...

7 years ago | 1 answer | 0

1

answer

Question


i have a vector x=[1 2 3 1 4 4.3 3 3.7 4.8],consider a variable k=4:0.2:5, how many values of x are greater than k(i.e) so the output will show [2 1 1 0 0]
i have a vector x=[1 2 3 1 4 4.3 3 3.7 4.8], consider a variable k=4:0.2:5, I need to find how many values of x are greater ...

7 years ago | 2 answers | 0

2

answers

Question


Help setting the lower threshold for filter....
THANKS FOR YOUR TIME FIRST. PLS HELP ME OUT I HAVE BEEN STUCK HERE FOR A LONG TIME Here is a function that i wrote to detect ...

7 years ago | 0 answers | 0

0

answers

Question


Hello how can I repeat this signal ten times periodically .How to use repmat in this case
q=inline(['mod(t,1)*1.*(mod(t,1)<1/3) +', '((mod(t,1)*-1+1).*((mod(t,1)>=1/3) & (mod(t,1)<2/3)) +','((mod(t,2)*2-2).*((mod(t,1...

7 years ago | 0 answers | 0

0

answers