Risolto


Laws of motion 1

oltre 2 anni fa

Risolto


radius of a spherical planet
You just measured its surface area, that is the input.

oltre 2 anni fa

Risolto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

oltre 2 anni fa

Risolto


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

oltre 2 anni fa

Risolto


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

oltre 2 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

oltre 2 anni fa

Risolto


Array of Ones
Create a 100 X 100 array of ones.

oltre 2 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

oltre 2 anni fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

oltre 2 anni fa

Risolto


Find the max element of the array
Find the max element of the array

oltre 2 anni fa

Risolto


to the 2 all elements
to the 2 all elements

oltre 2 anni fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

oltre 2 anni fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

oltre 2 anni fa

Risolto


Double all elements in the array
Duplicate all elements in the array

oltre 2 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

oltre 2 anni fa

Risolto


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Carica altro