Feeds
已解决
Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.
4 days 前
已解决
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
4 days 前
已解决
Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...
4 days 前
已解决
MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9
4 days 前
已解决
Row Vector
The second problem in Linear Algebra group. Create this vector in MATLAB: [7 8 26]
4 days 前
已解决
Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.
4 days 前
已解决
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
4 days 前
已解决
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
4 days 前
已解决
If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...
4 days 前
已解决
Determine the square root
Determine the square root of the value the user has entered, n.
4 days 前
已解决
Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...
5 days 前
已解决
Basic Algebra II
You have the equation X^2 = n you should find the value of X. GOOD LUCK!
5 days 前
已解决
Matrix
The fourth problem in Linear Algebra group. Create a matrix like this: 14 7 26 7 8 6 3 0 30
5 days 前
已解决
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...
5 days 前
已解决
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
5 days 前
已解决
the average value of the elements
Calculate the average value of the elements in the array
5 days 前

