Gareth Lee - MATLAB Central
photo

Gareth Lee


Last seen: 2 years ago Active since 2012

Followers: 0   Following: 0

Message

Statistics

All
CodyMATLAB AnswersFile ExchangeFrom 08/12 to 03/25Use left and right arrows to move selectionFrom 08/12Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

0 Questions
7 Answers

File Exchange

2 Files

Cody

4 Problems
1832 Solutions

RANK
4,266
of 297,560

REPUTATION
12

CONTRIBUTIONS
0 Questions
7 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
2

RANK
11,765 of 20,456

REPUTATION
37

AVERAGE RATING
0.00

CONTRIBUTIONS
2 Files

DOWNLOADS
4

ALL TIME DOWNLOADS
371

RANK
57
of 159,148

CONTRIBUTIONS
4 Problems
1832 Solutions

SCORE
16,237

NUMBER OF BADGES
24

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Triathlon Participant
  • Scavenger Finisher
  • Knowledgeable Level 1
  • First Answer
  • Cody Challenge Master
  • Community Group Solver
  • Personal Best Downloads Level 1
  • First Review
  • First Submission
  • Project Euler I
  • Cody Problems in Japanese Master
  • Indexing II Master

View badges

Feeds

Answered
my question is can anyone improve my code to get the right answer?
It seems like to decide given year is whether or not a leap year. If you use the matlab 2016b, you can use the function 'leapyea...

8 years ago | 0

Answered
hi, I have array a = [5 4 0;3 1 0;5 7 0], how can I replace the value in third column (a(:,3)) with the values in column 1 (a(:,1)) when a(:,1) > a(:,2) . I need obtain [5 3,5] in the third column
I think the description of your question is not clear, a(:,1)>a(:,2) is a column vector not all true. Is this your judge conditi...

8 years ago | 1

Answered
Fitting experimental data to find a function
You can try polyfit function or other curve fit function, i.e. nlinfit or lsqcurvefit,to find proper equation. you also use cft...

8 years ago | 0

| accepted

Answered
Loop backwards and select subset of rows that meet criteria
if you want to use loop, it is showed below: tindex = find(A(:,1)==t); for j = tindex:-1:2 if(A(j,1)-A(j-1,1)==1)...

8 years ago | 1

| accepted

Answered
Replace rows with NaN only if there are more than two continous zero values in the same column
First, you can find the column with continous zeros(more than two), then find the index for replacement with nan. for example:...

8 years ago | 0

Answered
Loop backwards and select subset of rows that meet criteria
you can solve it without loop, e.g B = find(diff(A(1:find(A(:,1)==t),1))~=1); result = A(B(end)+1:find(A(:,1)==t)-1,:);

8 years ago | 0

Answered
Can't find AC or DC source on Simulink
You can't find it if you search it in simulink start page. You can open a blank simulink file, then you can open the simulink li...

8 years ago | 0