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

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

10 months 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]

10 months 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,...

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

10 months ago

Solved

Whether the input is vector?

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

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

10 months ago

Solved

Get the length of a given vector

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

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

10 months 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:...

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

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

2 years ago | 0