Community Profile

# TIMOTHY PIERGIOVANNI

##### Last seen: 13 días ago
71 total contributions since 2021

View details...

Contributions in
View by

Solved

Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

21 días ago

Solved

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

21 días ago

Solved

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

21 días ago

Solved

Create a vector
Create a vector from 0 to n by intervals of 2.

21 días ago

Solved

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

21 días ago

Solved

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

21 días ago

Solved

Find max
Find the maximum value of a given vector or matrix.

21 días ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

21 días ago

Solved

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

21 días ago

Solved

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

21 días ago

Solved

The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

21 días ago

Solved

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

21 días ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

21 días ago

Solved

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

21 días ago

Solved

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

21 días ago

Solved

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

21 días ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

21 días ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

21 días ago

Solved

Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

26 días ago

Solved

Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

26 días ago

Solved

Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

26 días ago

Solved

Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

26 días ago

Solved

Draw a '0' in a one matrix!

26 días ago

Solved

Double all elements in the array
Duplicate all elements in the array

26 días ago

Solved

the average value of the elements
Calculate the average value of the elements in the array

26 días ago

Solved

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

26 días ago

Solved

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

26 días ago

Solved

calculate the length of matrix
input 1 array, calculate the length

26 días ago

Solved

to the 2 all elements
to the 2 all elements

26 días ago

Solved

Converts numbers into characters
Converts numbers into characters

26 días ago