Solved

Given a vector x, return vector y with all negative elements from the vector x.

Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

5 months ago

Solved

Back to basics - mean of corner elements of a matrix

Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

5 months ago

Solved

Find the sum of the elements in the "second" diagonal

Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

5 months ago

Answered

How do you reconstruct a test image from eigenfaces generated from Matlab pca function

You can use this MATLAB GUI for the recontruction of the image (both for colour and grayscale images) https://in.mathworks.co...

How do you reconstruct a test image from eigenfaces generated from Matlab pca function

You can use this MATLAB GUI for the recontruction of the image (both for colour and grayscale images) https://in.mathworks.co...

5 months ago | 1

Solved

Given a 4x4 matrix, swap the two middle columns

If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

5 months ago

Submitted

Image Aggregation of the Sentinel 1A images in MATLAB

Image aggregation of the SAR image of Sentinel 1A.

5 months ago | 4 downloads |

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

6 months ago

Answered

Sawtooth Waveform With Variable Frequency and constant amplitude

T = 10*(1/50); fs = 1000; t = 0:1/fs:T-1/fs; a=2*pi; x = a*sawtooth(2*pi*50*t,1/2); plot(t,x)

Sawtooth Waveform With Variable Frequency and constant amplitude

T = 10*(1/50); fs = 1000; t = 0:1/fs:T-1/fs; a=2*pi; x = a*sawtooth(2*pi*50*t,1/2); plot(t,x)

6 months ago | 0

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

6 months 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]; ...

6 months ago

Answered

Create a new vector with even numbers first.

x = [20 21 22 23 24 25 26 27 28 29] % Find indices where x is even: evenIndices = rem(x, 2) == 0 % Extract only the even nu...

Create a new vector with even numbers first.

x = [20 21 22 23 24 25 26 27 28 29] % Find indices where x is even: evenIndices = rem(x, 2) == 0 % Extract only the even nu...

6 months ago | 0

Answered

Connecting dots with straight line in a loop.

Follow this code. https://in.mathworks.com/matlabcentral/fileexchange/57185-cognitive-radio-frequency-assignment-with-interfere...

Connecting dots with straight line in a loop.

Follow this code. https://in.mathworks.com/matlabcentral/fileexchange/57185-cognitive-radio-frequency-assignment-with-interfere...

6 months ago | 0

Submitted

Sentinel 1A image reading and displaying in MATLAB

This code shows how to read the Sentinel 1A satellite data in MATLAB.

6 months ago | 10 downloads |

Submitted

Penetration-depth-evaluation-of-L-and-S-band-SAR-Signals

We study the functional relationship between the dielectric constant of soil-water mixture and penetration depth of microwave si...

6 months ago | 7 downloads |

Solved

Maximum value in a matrix

Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

6 months ago

Solved

Triangle sequence

A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

6 months ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

6 months ago

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

6 months ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

6 months ago

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

6 months ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

6 months ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

6 months ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

6 months ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

6 months ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

6 months ago