Cody

# Pankaj Soni

Rank
Badges
##### 470
Score
1 – 50 of 50
 on 10 May 2016 on 8 May 2016 on 7 May 2016 on 7 May 2016 on 7 May 2016 on 3 May 2016 on 2 May 2016 on 2 May 2016 on 2 May 2016 on 29 Apr 2016 on 28 Apr 2016 on 28 Apr 2016 on 28 Apr 2016 on 27 Apr 2016 on 27 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 on 25 Apr 2016 Pankaj Soni submitted a Comment to Solution 881544 %my code runs perfectly in matlab function b = most_change(a) b = 1; clc quarter = 0.25; dime =0.10; nickel =0.05; penny =0.01; y = [quarter,dime,nickel,penny]'; out = a*y; [u v] = max(out); b = v; end on 25 Apr 2016 on 25 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 Pankaj Soni submitted a Comment to Solution 881091 function example(n) clc y = n; for i = 1:1:length(y) for j = 1:1:length(y) while y(i) == sqrt(y(j)) fprintf('true\n'); return end while y(i) ~= sqrt(y) fprintf('false\n'); return end end end % my code runs successfully in matlab on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 Pankaj Soni submitted a Comment to Solution 881052 function tf = mono_increase(x) tf = false; if x(1,1)>=y(1, length(x)) fprintf('false \n'); elseif x(1,1)==0 fprintf('true\n'); else fprintf('false\n'); end end %this is compiling in matlab with all inputs on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 on 24 Apr 2016 Pankaj Soni submitted a Comment to Solution 880790 %please check why this is not compiling function prac(n) t=n; clc if n >1 for l = 1:1:(t-1) l = l+1; end for i=1:1:l for k = l:-1:i fprintf(' '); end for j = 1:1:i fprintf('* '); end fprintf('\n'); end else fprintf(' *\n'); end on 23 Apr 2016 Pankaj Soni received Commenter badge for Solution 880790 on 23 Apr 2016 Pankaj Soni submitted a Comment to Solution 880790 % correct solution function triangle(n) t=n; clc if n >1 for l = 1:1:(t-1) l = l+1; end for i=1:1:l for k = l:-1:i fprintf(' '); end for j = 1:1:i fprintf('* '); end fprintf('\n'); end else fprintf(' *\n'); end on 23 Apr 2016 on 23 Apr 2016 on 23 Apr 2016 on 23 Apr 2016 on 23 Apr 2016 on 16 Apr 2016 on 16 Apr 2016 on 16 Apr 2016 on 16 Apr 2016 Pankaj Soni received Solver badge for Solution 875557 on 16 Apr 2016 on 16 Apr 2016
1 – 50 of 50