Solved

Whether the input is vector?

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

4 months ago

Solved

Get the length of a given vector

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

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

4 months ago

Question

Print a specific PDF file using its path?

I would like to print (physically on paper, not display on screen) a particular PDF, from MATLAB. Is this possible? I have look...

6 months ago | 1 answer | 0

Solved

Pizza!

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

9 months ago

Question

MATLAB Grader: Learner solution.m missing? No such file or directory.

I have used custom code many times to check my learners have written something exact, e.g. % Get student code soln = fileread(...

1 year ago | 1 answer | 0

Channel

P5 Comp Code Performance Server

For P5 Computing students to post their code run time, so we can see an entire cohort distribution

1 year ago

Solved

Sum of series VII

What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

2 years ago

Solved

Sum of series VI

What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

2 years ago

Solved

Sum of series V

What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

2 years ago

Solved

Sum of series IV

What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

2 years ago

Solved

Sum of series III

What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

2 years ago

Solved

Sum of series II

What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

2 years ago

Solved

Sum of series I

What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

2 years ago

Question

Speed up running Simulink model using sim in MATLAB Grader

I have been using MATLAB Grader to much success, but now I want to get my students to run a simple Simulink model using a script...

3 years ago | 1 answer | 0

Solved

Indexed Probability Table

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

3 years ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

3 years ago

Solved

The Tower of Hanoi

In the <http://en.wikipedia.org/wiki/Tower_of_Hanoi Tower of Hanoi problem> with 3 rods (1, 2 & 3), the goal is to move a tower ...

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

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

5 years ago

Solved

Pentagonal Numbers

Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

5 years ago

Solved

How to subtract?

* Imagine you need to subtract one number from another using MATLAB. * You will not be using eval for this task. * Given two A...

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

6 years ago