Cody

Umur Ulas Harman

1152
Rank
9
Badges
1120
Score
51 – 100 of 128

Umur Ulas Harman submitted a Comment to Solution 2630344

function y = damped_cos(lambda, T, N) A=1; f=1; t=linspace(0,T,N); y = A*exp(-lambda*t).*cos(2*pi*f*t); end

on 29 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 2627062

it is ridiculous but still, it works. feel free to improve it. function X = rescale_scores(X) t=zeros(size(X,1)+2,size(X,2)); adjustment=[60;100]; t(1:end-2,1:end)=X; t(end-1:end,end)=adjustment; initial_finals=rescale(t(:,end),0,4); X(:,end)=initial_finals(1:end-2,:); end

on 29 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 2626789

function z = in_prod(x,y) if size(x,2)==size(y,1) z=x*y else z = "The inner dimensions are " + size(x,2) + " and " + size(y,1) + ". Matrix multiplication is not possible"; end end

on 29 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 2625967

it does not work if u did not put curly brackets. since otherwise u call a table. however, you need a column array to pass the test I believe. function mpg = sort_cars(N) load cars.mat sorted = sortrows (cars,4) n = N mpg = sorted(1:n,2) mpg=mpg{:,:} end

on 28 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 2625550

function Icrop = crop_image(I, Rmin, Cmin, Rpix, Cpix) Icrop = I(Rmin:Rmin+Rpix-1,Cmin:Cmin+Cpix-1); end

on 28 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1917777

function bmi = bmi_calculator(hw) % Convert the height values from inches to meters height=hw(:,1)*(2.54)/100 % Convert the weight values from lbs to kilograms weight=hw(:,2)*(1/2.2) % Calculate the bmi for height and weight combination and return the output variable 'bmi' bmi = weight./(height.*height)

on 26 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 2249581

function m = plot_cos(y, t) plot(t,y,'b--') [value,index]=min(y) hold on plot(t(index),y(index),'r*') m=value end

on 26 Jun 2020

Umur Ulas Harman received Community Group Solver badge for Basics on Vectors

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1936856

function B = your_fcn_name(A) B=repelem(A,2); end

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1936853

function y = checkvector(x) y = isvector(x); end

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1837622

function y = your_fcn_name(x) y = max(max(x)); end

on 25 Jun 2020

Umur Ulas Harman received Introduction to MATLAB Master badge

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1936838

function m = magic_sum(n) t=magic(n) m=sum(t(1:n)); end

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1640037

function m = timestables(n) y(1,1:n)=1:n; y(1:n,1)=1:n; for i=2:n for j=2:n y(i,j)=y(1,j)*y(i,1) end end m = y; end

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1936830

function out = findIndices(vec, thresh) [row,col]=find(vec>thresh); out = col end

on 25 Jun 2020

Umur Ulas Harman submitted a Comment to Solution 1936828

function y = existsInVector(a,b) y = ismember(a,b) end

on 25 Jun 2020

51 – 100 of 128