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₁...

5 giorni 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...

5 giorni 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...

5 giorni 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...

5 giorni 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...

5 giorni ago

Solved

Perimeter of a square!

Calculate the circumference of the square whose side is n

5 giorni ago

Solved

the average value of the elements

Calculate the average value of the elements in the array

5 giorni ago

Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

5 giorni 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;

21 giorni 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]

21 giorni 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 :)

circa un mese 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.

circa un mese 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)...

circa un mese 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?

circa un mese 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...

circa un mese ago | 0

Submitted

ez (easy) plotter

MATLAB app that makes plotting functions easy and fun

2 mesi ago | 3 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 mesi 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 mesi 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 mesi ago