Bugrahan Atar - MATLAB Cody - MATLAB Central

Bugrahan Atar

30032
Rank
2
Badges
148
Score
1 – 18 of 18

Bugrahan Atar submitted a Comment to Problem 62. Elapsed Time

function elapsed= elapsed_time(d1,d2) d1='2010/12/14 12:00:00' d2='2010/12/15 13:06:36' a=(str2num(d2(1:4))-str2num(d1(1:4)))*8760; b=(str2num(d2(6:7))-str2num(d1(6:7)))*720; c=(str2num(d2(9:10))-str2num(d1(9:10)))*24; e=str2num(d2(12:13))-str2num(d1(12:13)); f=(str2num(d2(15:16))-str2num(d1(15:16)))/60; g=(str2num(d2(18:19))-str2num(d1(18:19)))/3600; elapsed=a+b+c+e+f+g end it told me that solution is wrong?

on 9 Feb 2021

Bugrahan Atar submitted a Comment to Problem 247. Arrange Vector in descending order

I do not understand what is wrong with the solution? I solved question with my algorithm function y=desSort(x) x=input(' give me input to obtain descending order of input') y = zeros(size(x)); indis=0; for j=1:length(x) maksimum=x(j); for i=1:length(x) if x(i)>maksimum maksimum=x(i); a=i; end end x(a)= 0 y(j)=maksimum end end

on 2 Jan 2021

Bugrahan Atar received Solver badge for Solution 4266595

on 14 Dec 2020

1 – 18 of 18
Go to top of page