Community Profile

photo

Richard


Richard Ellis

Last seen: 3 maanden ago Active since 2019

Statistics

All
  • Solver
  • First Review
  • First Answer

View badges

Content Feed

View by

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

bijna 4 jaar ago

Solved


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

bijna 4 jaar ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

bijna 4 jaar ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

bijna 4 jaar ago

Solved


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

bijna 4 jaar ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

bijna 4 jaar ago

Solved


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

bijna 4 jaar 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.

bijna 4 jaar ago

Solved


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

bijna 4 jaar ago

Solved


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

bijna 4 jaar ago

Solved


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

bijna 4 jaar 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 ...

bijna 4 jaar 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:...

bijna 4 jaar ago

Answered
R2018b / R2019a runs very slow on macOS 10.14
I am running Mac OS 10.13 (High Sierra) with R2019a & have the same problem (iMac with 8GB RAM). I re-launched MATLAB & this ti...

bijna 5 jaar ago | 0