Community Profile

photo

Martin C.


1,058 total contributions since 2016

University of Toronto CS master's student.
martincarrington.com

Contact

Martin C.'s Badges

  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 1
  • First Submission
  • First Answer
  • Promoter
  • Leader
  • Scholar
  • Commenter
  • Speed Demon
  • Creator
  • Solver

View details...

Contributions in
View by

Solved


Square root of number
Square root of given number.

27 days ago

Solved


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ 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


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

27 days ago

Solved


Perimeter of a square!
Calculate the circumference of the square whose side is n

27 days ago

Solved


easy problem
Find the last element of the array

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


Calculate the area of a circle
Given a circle of diameter x calculate its area

27 days ago

Solved


Sum sum!!!
Sum the numbers from 1 to n

1 month ago

Solved


calculate the length of matrix
input 1 array, calculate the length

1 month ago

Solved


Find the max element of the array
Find the max element of the array

1 month ago

Solved


Duplicate all elements in the array
Duplicate all elements in the array

1 month ago

Solved


to the 2 all elements
to the 2 all elements

1 month 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

Solved


Square
square root of x

1 month ago

Solved


factorial
calculate x!

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

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.

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

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?

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

2 months ago | 0

Submitted


ez (easy) plotter
MATLAB app that makes plotting functions easy and fun

3 months ago | 6 downloads |

Thumbnail

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

Load more