Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 8 Jahre vor | 0 Antworten | 0

0

Antworten