Gelöst


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]

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


square number
Square a number

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Mehr laden