Community Profile

photo

Christopher Stapels

MathWorks

Last seen: Today Active since 2016

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Thankful Level 1
  • 12 Month Streak
  • Creator
  • Promoter
  • Community Champion
  • First Review
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 1
  • First Submission
  • GitHub Submissions Level 1
  • Knowledgeable Level 3

View badges

Content Feed

Problem


Find the worst traffic yesterday

9 Monate ago | 1 | 10 solvers

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

9 Monate ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

11 Monate ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

11 Monate ago

Solved


Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...

12 Monate ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

12 Monate ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

mehr als ein Jahr ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

fast 2 Jahre ago

Solved


Return area of square
Side of square=input=a Area=output=b

fast 2 Jahre ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

fast 2 Jahre ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

fast 2 Jahre ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

fast 2 Jahre ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

fast 2 Jahre ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

fast 2 Jahre ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

fast 2 Jahre ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

fast 2 Jahre ago

Solved


Find max
Find the maximum value of a given vector or matrix.

fast 2 Jahre ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

fast 2 Jahre ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

fast 2 Jahre ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

fast 2 Jahre ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

fast 2 Jahre ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

fast 2 Jahre ago

Solved


A Simple Tide Gauge with MATLAB
*&#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767* You are standing in a few inches of sea water on a beach. You a...

mehr als 3 Jahre ago

Solved


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

mehr als 3 Jahre ago

Solved


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

fast 4 Jahre ago

Solved


Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

fast 4 Jahre ago

Solved


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

fast 4 Jahre ago

Solved


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

fast 4 Jahre ago

Solved


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

fast 4 Jahre ago