Summation of array
Given an array, Find the sum of all of the elements in it
Examples:
Input x = [1 2 3 5; 4 5 6 7];
Output y is 33
5年以上 前
解決済み
Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
y ...
5年以上 前
解決済み
Max of a Vector
Write a function to return the max of a vector
Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...
5年以上 前
解決済み
Negative Infinity
Round the given array a towards negative infinity.
Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts
example:
a = 1, b = 2
output = 1 1.25 ...
5年以上 前
解決済み
Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.
5年以上 前
解決済み
Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody.
Return a string that is the path to the system's current temp di...
5年以上 前
解決済み
Product of Array
Given an array of numbers. Get the product of the array.
5年以上 前
解決済み
Evaluating a polynomial
Given the following polynomial and the value for x, determine y.
y = 3x^5 – x^3 + 8x – 3
Example
x = 1
y = 3 - 1 +...
5年以上 前
解決済み
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix
example:
A = [1 2 3]
output = [1 4 9]
Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input variable 'x', save it to disk in a file named 'co...