Solved

Insert zeros into vector

Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

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

21 days ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

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

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

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

21 days ago

Question

Output 'y' has variable size but the upper bound is not specified; explicit upper bound must be provided.

y = 10 coder.varsize('y', [1,20000]); These lines of code are inside a for loop and I expect the size of the variable y to i...

1 month ago | 0 answers | 0

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

1 month ago

Question

Unable to open openExample('nav/GenerateAlternativeTrajectoriesForReferencePathExample')

I am unable to use the command referencePathFrenet. i get the following message ->Unrecognized function or variable 'referencePa...

2 months ago | 1 answer | 0

Question

How can I pass a anonymous function as an output to another function?

function [a0,a1,a2]= fcn(s,v,a,T) %a0,a1,a2 are coefficients of a polynomial which are calculated based on inputs s,v,a,T end ...

2 months ago | 1 answer | 0

Question

May i know the relation between dare command usage and optimal control concept of cost function?

Optimization is the process finding a control law which reduces the cost function. This is the question i am referring to: ...

5 years ago | 0 answers | 0