A résolu


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

presque 11 ans il y a

A résolu


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

presque 11 ans il y a

A résolu


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

presque 11 ans il y a

A résolu


Product of Array
Given an array of numbers. Get the product of the array.

presque 11 ans il y a

A résolu


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

presque 11 ans il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

presque 11 ans il y a

A résolu


Sum of integers numbers
Sum of the numbers from 1 to 100

presque 11 ans il y a

A résolu


How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...

presque 11 ans il y a

A résolu


square number
Square a number

presque 11 ans il y a

A résolu


y equals x divided by 2
function y = x/2

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

presque 11 ans il y a

A résolu


Best Problem Elections
When I am writing those words, there are 2002 problems on Cody. Many of them are simply wonderful. Do you remember which of them...

presque 11 ans il y a

A résolu


sum of the first 10 odd numbers
y = sum(first_10_odd_numbers)

presque 11 ans il y a

A résolu


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

presque 11 ans il y a

A résolu


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

presque 11 ans il y a

A résolu


Times 32
X is given as your variable. Y is your output multiplied by 32 Example x=1 y=1x32=32

presque 11 ans il y a

A résolu


Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

presque 11 ans il y a

A résolu


Sum Even Numbers
Given a number x, make the summation of all the even until x. For instance, x = 7, so y = 2+4+6 = 12 * x = [3] * y = 2 * ...

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

presque 11 ans il y a

A résolu


Vector
Create a 1 x 10 vector from 1 to 20 with increments of 2

presque 11 ans il y a

A résolu


Times 3 problem
When you enter the number, it should return the number multiplied by 3

presque 11 ans il y a

A résolu


Print the largest eigenvalue of A(500)
Write a function that prints the largest eigenvalue of A(500), without any extraneous output. For a positive integer n, let A...

presque 11 ans il y a

A résolu


Area of a rectangle
Find the area of a rectangle with sides a and b

presque 11 ans il y a

A résolu


Interior angles
Find the sum of interior angles for polygon of x sides.

presque 11 ans il y a

Charger plus