Community Profile

# MS

##### Last seen: 6 days ago
51 total contributions since 2020

View details...

Contributions in
View by

Question

How to choose data with three conditions to plot contour
I want to choose all the values from -50:1:50 with three conditons. 1, greater than zero(x>0), 2,smaller than -25 (x<-25) ...

6 days ago | 1 answer | 0

### 1

Question

x-y plot: how to shade the difference between two lines in multiple colors
kindly help me to fill the diffrence with two diffrent colur in a x y plot as shown in the below example figure? I need to sh...

14 days ago | 1 answer | 0

### 1

Question

exportgraphics r2020a issue
I am using exportgraphics command to export hihg quality images. exportgraphics(gcf,[filenames(1:end-4),'.tiff'], 'Resolution'...

2 months ago | 1 answer | 1

### 1

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

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

3 months ago

Question

stream line _issue
When i plot the streamline using the code. I am unbale to get the stream lines for the complete field as shown in the figure. ...

3 months ago | 1 answer | 0

### 1

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

3 months ago

Solved

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

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

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

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

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

3 months ago

Question

Plot 2D streamline_issue
I need a help to plot 2D streamline along with the contour plot. I am unable to plot the steamline properly(startx,stary). I a...

3 months ago | 1 answer | 0

### 1

Question

how to add a subscript in colour map labels
How to add a subscript to a text(Uo) in matlab 2020a. Please help me to write a subscript to colour map label. h.Label.String =...

3 months ago | 1 answer | 0

### 1

Solved

Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

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

3 months ago

Question

plot 2D contours
I need help to plot 2D contours as shown in the figure for mutiple files. I am attaching my code and data files for your referen...

3 months ago | 1 answer | 0

### 1

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

3 months ago

Question

Simple 2D contour plots
navg = 11; filenames = cell(navg,1); for i = 1:navg filenames = sprintf('queen2_test_%d.dat', i); mydata{i} = i...

3 months ago | 1 answer | 0

### 1

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

3 months ago

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

3 months ago

Solved

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

3 months ago

Solved

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

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

3 months ago

Solved

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

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago

Solved

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

3 months ago