xb - MATLAB Cody - MATLAB Central

xb

19977
Rank
2
Badges
243
Score
1 – 24 of 24

xb submitted Solution 11883887 to Problem 72. Interpolator

on 21 Aug 2023

xb received Commenter badge for Problem 69. Find the peak 3n+1 sequence value

on 21 Aug 2023

xb submitted a Comment to Problem 69. Find the peak 3n+1 sequence value

why does it not work it can run successfully in matalb function pmax = peakOfPeaks(nmax) B=[] for n=1:1:nmax A=[]; if n==1 A=1 else A=n end while n~=1 if mod(n,2)==1 A=[A,3*n+1]; n=3*n+1 else A=[A,n/2]; n=n/2 end end B=[B,max(A)] end pmax=max(B) end

on 21 Aug 2023

xb submitted Solution 11874747 to Problem 5. Triangle Numbers

on 18 Aug 2023

xb submitted Solution 11874037 to Problem 44945. Calculate BMI

on 18 Aug 2023

xb submitted Solution 11870542 to Problem 8. Add two numbers

on 17 Aug 2023

xb received Solver badge for Solution 11862702

on 15 Aug 2023

1 – 24 of 24
Go to top of page