Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
2 years 前
已解决
Add two numbers
Calculate the sum of two numbers.
Example
input = [2 3]
output = 5
2 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
2 years 前
已解决
Check if sorted
Check if sorted.
Example:
Input x = [1 2 0]
Output y is 0
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 前
已解决
Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array:
Given this array
Return...
2 years 前
已解决
02 - Vector Variables 2
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2b.png>>
Make roundn function
Make roundn function using round.
x=0.55555
y=function(x,1)
y=1
y=function(x,2)
y=0.6
y=function(x,3)
...
2 years 前
已解决
Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...
2 years 前
已解决
Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...