Leo S - MATLAB Cody - MATLAB Central

Leo S

22802
Rank
2
Badges
212
Score
1 – 26 of 26

Leo S submitted Solution 3925933 to Problem 167. Pizza!

on 30 Nov 2020

Leo S submitted a Comment to Problem 23. Finding Perfect Squares

I solved it with 2 for-loops, 1 function, 1 if-condition. It works, but there are more efficient ways apparently

on 30 Nov 2020

Leo S submitted a Comment to Problem 14. Find the numeric mean of the prime numbers in a matrix.

What is wrong with a = find( isprime( in)) out = mean( in( a)) ? It works perfectly in my own MATLAB environment

on 30 Nov 2020

Leo S submitted a Comment to Solution 3745618

Eh okay. I dislike this problem. First, I used a "for loop", but the results were often not logical/ reliable. I than used a = 1 : 1 : length(x) - 1; if all( x(a) < x(a + 1)) tf = true; end and it worked. But why can't I use a "for loop"?! I feel like I did not learn anything from this

on 20 Nov 2020

Leo S submitted a Comment to Solution 3040627

I think it checks both

on 20 Nov 2020

Leo S submitted a Comment to Problem 9. Who Has the Most Change?

BE CAREFUL WITH THE NUMBERS TWIST AT THE START! The currency is not sorted in descending or ascending order

on 20 Nov 2020

Leo S submitted a Comment to Problem 4. Make a checkerboard matrix

I just made a(2:2:n,1:2:n) = 0; a(1:2:n,2:2:n) = 0; rather easy actually

on 20 Nov 2020

Leo S received Commenter badge for Solution 3743133

on 20 Nov 2020

Leo S submitted Solution 3742873 to Problem 7. Column Removal

on 20 Nov 2020

Leo S submitted Solution 3742558 to Problem 5. Triangle Numbers

on 20 Nov 2020

Leo S received Solver badge for Solution 3591390

on 9 Nov 2020

1 – 26 of 26
Go to top of page