Community Profile # Shreya Maggo

Last seen: 8 mois ago Active since 2020

#### Statistics

• • #### Content Feed

View by

Solved

Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

11 mois ago

Solved

Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

11 mois ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

11 mois ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

11 mois ago

Solved

only input
Return the output without writing any code into the function.

11 mois ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

11 mois ago

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

11 mois ago

Solved

Positive Infinity
Round the array a towards positive infinity

11 mois ago

Solved

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

11 mois ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

11 mois ago

Solved

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

11 mois ago

Solved

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

11 mois 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

11 mois 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]

11 mois ago

Solved

Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

11 mois ago

Solved

Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

11 mois ago

Solved

Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

11 mois ago

Solved

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

11 mois ago

Solved

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

11 mois ago

Solved

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

11 mois ago

Solved

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

11 mois ago

Solved

Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

11 mois ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

11 mois ago

Solved

You just measured its surface area, that is the input.

11 mois ago

Solved

Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

11 mois ago

Solved

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

11 mois ago

Solved

Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

11 mois ago

Solved

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

11 mois ago

Solved

Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

11 mois ago

Solved

Celsius to Fahrenheit

11 mois ago