Muhammet Fatih isik - MATLAB Cody - MATLAB Central

Muhammet Fatih isik

4634
Rank
7
Badges
1009
Score
1 – 50 of 88

Muhammet Fatih isik received Project Euler I Master badge

on 15 May 2021

Muhammet Fatih isik submitted a Comment to Solution 5755158

hi, my cod gives me true ans but its worked too slow because of for loop but could not figure it out without for loop. could u send me our code or check mines ? function u = euler004(n) function L = ispalindrome(n) s=num2str(n); l=length(s); for i=1:ceil(l/2) if str2double(s(i)) == str2double(s(l-i+1)) continue else L=false; return end end L=true; end c=numel(num2str(n)); switch c case 3 l=9; case 4 l=99; end g=l:n; m=l:n; z=g'*m; b=z(:)'; T=[]; for vz=1:numel(b) if ispalindrome(b(vz))>0 T=b(vz); end end u=max(T); end

on 14 May 2021

Muhammet Fatih isik received Commenter badge for Solution 2906932

on 14 May 2021

Muhammet Fatih isik submitted a Comment to Solution 2906932

Hi sir, could u share ur solution with me cause I attempt nearly 50 times and still ain't got to complate. I don't know where is the problem and it's frustrating.

on 14 May 2021

Muhammet Fatih isik received Matrix Manipulation I Master badge

on 14 May 2021

Muhammet Fatih isik received Introduction to MATLAB Master badge

on 7 May 2021

1 – 50 of 88
Go to top of page