Community Profile

photo

Rongyu Chu


Aktiv seit 2019

Followers: 0   Following: 0

Statistiken

Feeds

Anzeigen nach

Beantwortet
How to accelerate my code
Is there anyway I can use matrix instead of loops ? Matrix should be able to solve this much faster.

mehr als 4 Jahre vor | 0

Frage


How to accelerate my code
Hi, guys. The question I am asked to solve is like this. I will be given a list of numbers (note that the first and last numbers...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Delete some specific numbers from an array
So, here is the cide I wrote. N = load('exp.dat'); len = length(N); for i = 2:(len-3) if N(i+1)>N(i)>N(i-1) ...

mehr als 4 Jahre vor | 0

Frage


Delete some specific numbers from an array
So, the problem is like this. I have an array of random numbers. For example [10 9 5 5 7 3 5 8 3 5 6 3 7 10 ]. First, I have to ...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten