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

3 years ago

Solved


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

3 years ago

Solved


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

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

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

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

3 years ago

Solved


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

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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

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

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

3 years ago | 1 answer | 0

1

answer

Solved


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

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

4 years ago | 1 answer | 0

1

answer

Channel


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

4 years 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?

5 years ago

Solved


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

5 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?

5 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?

5 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?

5 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?

5 years ago

Solved


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

5 years ago

Discussion


Copy-Paste in Grader
I often code snippets to students in the question description. I would like the students to be able to copy and paste these from...

5 years ago | 0

Discussion


Save an Image from MATLAB Grader
I get students to create some figures in MATLAB Grader. Is there anyway the students can save the figure on their computer? I ha...

5 years ago | 0

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

6 years ago | 1 answer | 0

1

answer

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

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

6 years ago

Load more