Feeds
已解决
Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...
2 years 前
已解决
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
2 years 前
已解决
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...
2 years 前
已解决
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...
2 years 前
已解决
Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.
2 years 前
已解决
Finding area of a triangle.
Find the area of an equalateral triangle with sides of 3 inches,
2 years 前
已解决
Find the square root of x
Determine the square root of x. For example square root of 4 is 2.
2 years 前
已解决
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
2 years 前
已解决
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
2 years 前
已解决
Matlab Basics II - Unit Conversion
Write a function that converts Kg to lbs, returns the answer to the nearest 1/100th of a pound
2 years 前
已解决
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
2 years 前
已解决
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 ...
2 years 前
已解决
Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...
2 years 前
已解决
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...
2 years 前
已解决
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.
2 years 前

