Community Profile

TIMOTHY PIERGIOVANNI

Last seen: 4 giorni 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...

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

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

11 giorni ago

Solved

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

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

11 giorni ago

Solved

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

11 giorni ago

Solved

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

11 giorni ago

Solved

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

11 giorni ago

Solved

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

11 giorni ago

Solved

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

11 giorni 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".

11 giorni ago

Solved

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

11 giorni 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 + ...

11 giorni ago

Solved

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

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

11 giorni ago

Solved

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

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

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

11 giorni 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,....

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

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

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

17 giorni ago

Solved

Draw a '0' in a one matrix!

17 giorni ago

Solved

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

17 giorni ago

Solved

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

17 giorni 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;...

17 giorni ago

Solved

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

17 giorni ago

Solved

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

17 giorni ago

Solved

to the 2 all elements
to the 2 all elements

17 giorni ago

Solved

Converts numbers into characters
Converts numbers into characters

17 giorni ago