1,058 total contributions since 2016

University of Toronto CS master's student.

martincarrington.com

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

27 days ago

Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

27 days ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

27 days ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

27 days ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

27 days ago

Solved

the average value of the elements

Calculate the average value of the elements in the array

27 days ago

Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

27 days ago

Solved

Check prime numbers

Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

1 month ago

Solved

Repeat elements of a vector

Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

1 month ago

Answered

Error when taking mean of generated random variables with gamma distribution.

you defined mean = 1. Then you try to use it as a function :)

Error when taking mean of generated random variables with gamma distribution.

you defined mean = 1. Then you try to use it as a function :)

2 months ago | 0

Answered

Collect double values of a matrix

hmm well to count occurences you could somehow use a hashmap containers.Map in matlab. that would be efficient.

Collect double values of a matrix

hmm well to count occurences you could somehow use a hashmap containers.Map in matlab. that would be efficient.

2 months ago | 0

Answered

how to plot Integrate of exponent and cosine equation.

you can try something like this syms tau t f = exp(-t/tau).*cos(t+1) func = int(f,t,0,1) x = 0.01:.01:10; y = subs(func, x)...

how to plot Integrate of exponent and cosine equation.

you can try something like this syms tau t f = exp(-t/tau).*cos(t+1) func = int(f,t,0,1) x = 0.01:.01:10; y = subs(func, x)...

2 months ago | 0

Answered

How to remove the integration constants from the integrated random signal ?

hmm.. are you trying to compute an indefinite integral?

How to remove the integration constants from the integrated random signal ?

hmm.. are you trying to compute an indefinite integral?

2 months ago | 0

Answered

Variable updates for a brief moment before returning to the original value.

hmm you might want to use '< handle' if you want to make changes to an object within a method. https://www.mathworks.com/help/m...

Variable updates for a brief moment before returning to the original value.

hmm you might want to use '< handle' if you want to make changes to an object within a method. https://www.mathworks.com/help/m...

2 months ago | 0

Submitted

ez (easy) plotter

MATLAB app that makes plotting functions easy and fun

3 months ago | 6 downloads |

Solved

Calculate Resistance 2

In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

4 months ago

Solved

Invert a 3D rigid-body transformation

Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

4 months ago

Solved

Create a 3D rotation matrix

Consider an arbitrary coordinate frame {A}. Consider another coordinate frame {B} which has the same origin as {A} but is rotat...

4 months ago