photo

J J


Last seen: 5 years ago Active since 2018

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
78,477
of 300,908

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,110

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 171,639

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 2
  • First Review
  • Thankful Level 1

View badges

Feeds

View by

Question


How can I make this find function in a for loop run faster using vectorization?
%% Find Peaks of raw data tic if MinPeakDistance == 0 [y_enc, t_pks] = findpeaks(y_raw, freq_s, 'MinPeakProminence', Mi...

7 years ago | 1 answer | 0

1

answer

Question


How can I vectorize this find function?
for i=1:length(x) ind_1 = find(b <x(i), 1, 'last'); ind_2 = ind_1+1; x1 = b(ind_1); x2 = b(ind_2); y1 =...

7 years ago | 1 answer | 0

1

answer