Resuelto


find the hypotenuse.
sideA=linspace(1,10,10) sideB=linspace(1,10,10) sideC=

más de 11 años hace

Resuelto


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

más de 11 años hace

Resuelto


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

más de 11 años hace

Resuelto


Find all of the odd integers in a vector between the intergers 1 and 10.
Given vector of integers 1:10 [1 2 3 4 5 6 7 8 9 10]

más de 11 años hace

Resuelto


the function, the box of boxer briefs, being twice the amount being manufactured twice as much x
return y as the function multiplied by x twice

más de 11 años hace

Resuelto


How to make y half of x
Making y equal to x/2.

más de 11 años hace

Resuelto


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

más de 11 años hace

Resuelto


square root
Find the square root (y) of an input (x).

más de 11 años hace

Resuelto


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

más de 11 años hace

Resuelto


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

más de 11 años hace

Resuelto


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

más de 11 años hace

Resuelto


Multiplying Vectors 101
Make a vector from 1 to x then multiply the sum of that vector by 2.

más de 11 años hace

Resuelto


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

más de 11 años hace

Resuelto


Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...

más de 11 años hace

Resuelto


Perfect Square
Find a function that finds the root of a perfect number!

más de 11 años hace

Resuelto


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

más de 11 años hace

Resuelto


Finding the volume of a basketball.
You are given a basketball with a given radius (r), what is its volume?

más de 11 años hace

Resuelto


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

más de 11 años hace

Resuelto


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

más de 11 años hace

Resuelto


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

más de 11 años hace

Resuelto


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

más de 11 años hace

Resuelto


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

más de 11 años hace

Resuelto


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

más de 11 años hace

Resuelto


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

más de 11 años hace

Resuelto


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

más de 11 años hace

Resuelto


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

más de 11 años hace

Resuelto


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

más de 11 años hace

Resuelto


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

más de 11 años hace

Cargar más