Community Profile

# Shreya Maggo

##### Last seen: 6 mesi ago
78 total contributions since 2020

View details...

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

10 mesi ago

Solved

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

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

10 mesi ago

Solved

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

10 mesi ago

Solved

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

10 mesi 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]; ...

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

10 mesi ago

Solved

Positive Infinity
Round the array a towards positive infinity

10 mesi ago

Solved

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

10 mesi ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

10 mesi ago

Solved

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

10 mesi 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

10 mesi 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

10 mesi 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]

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

10 mesi 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]

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

10 mesi ago

Solved

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

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

10 mesi ago

Solved

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

10 mesi ago

Solved

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

10 mesi ago

Solved

Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

10 mesi ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

10 mesi ago

Solved

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

10 mesi 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

10 mesi ago

Solved

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

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

10 mesi ago

Solved

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

10 mesi ago

Solved

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

10 mesi ago

Solved

Celsius to Fahrenheit

10 mesi ago