Solved

Double summation
Write two nested for loops to calculate the following double summation: <<https://drive.google.com/uc?id=0B74PAULDIwwsWFhlNTV...

oltre 5 anni ago

Solved

Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

oltre 5 anni ago

Solved

Writing a while loop
Write a while loop that continues to increment userValue by 5 until userValue is less than 0.

oltre 5 anni ago

Solved

Matlab Basics - y as a function of x
write a script to calculate y as a function of x, such that y = 6x^2 + 5x - 2

oltre 5 anni ago

Solved

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

oltre 5 anni ago

Solved

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

oltre 5 anni ago

Solved

Bridge toll
Complete the example to calculate finalToll. The base toll for a bridge is baseToll. If the vehicle's weight is over 5,000 pound...

oltre 5 anni ago

Solved

Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

oltre 5 anni ago

Solved

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]

oltre 5 anni ago

Solved

Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

oltre 5 anni ago

Solved

Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

oltre 5 anni ago

Solved

Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

oltre 5 anni ago

Solved

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

oltre 5 anni ago

Solved

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

oltre 5 anni ago

Solved

Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

oltre 5 anni ago

Solved

poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
This problem is a poll (and a little bit of "white hat hacktivism" as well) regarding Cody users sentiment about the use of rege...

oltre 5 anni ago

Solved

ASCii Code
Using Matlab get the ASCii for '?'

oltre 5 anni ago

Solved

Max of a Vector
Write a function to return the max of a vector

oltre 5 anni ago

Solved

ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

oltre 5 anni ago

Solved

Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

oltre 5 anni ago

Solved

Model a simple pendulum
Model a simple pendulum of length 200cm with bob of mass 100g and plot the position in degrees. The pendulum starts at 30 degree...

oltre 5 anni ago

Solved

Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

oltre 5 anni ago

Solved

Determine the square root
Determine the square root of the value the user has entered, n.

oltre 5 anni ago

Solved

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

oltre 5 anni ago

Solved

Counting down
Create a vector that counts from 450 to 200 in increments of 10.

oltre 5 anni ago

Solved

Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

oltre 5 anni ago

Solved

Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

oltre 5 anni ago

Solved

Comparing floating point values
* Assign matchFound with true if firstSample and secondSample are less than thresholdValue.

oltre 5 anni ago

Solved

Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

oltre 5 anni ago

Solved

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

oltre 5 anni ago