Community Profile

# Mariam Shahab

Last seen: Today Active since 2022

#### Content Feed

View by

Question

How to make a line of fixed length?
Hi all, I want to make a line that has a fixed length and it has a partciular direction. I would appreciate any suggestions for...

2 days ago | 2 answers | 0

### 2

Question

How to find an array with all common elements?
Hi all, Suppose I have the following two arrays: a= [1 1 1 0 1]; b= [1 0 1 1 0]; I want to find an array that contains each ...

6 days ago | 1 answer | 0

### 1

Question

How do I identify points within a user defined shape?
Hi all, I have the folliwing code: % genertae random data %initial parameters npoints= 300; xrange = [0 100]; yrange = [0 ...

2 months ago | 1 answer | 0

### 1

Question

Why am I not getting the m array?
Hi all, I have the following function: function [m,yinter] = radial_lines(X,Y,xi,yi) if X==Y m=inf; yinter= X; ...

2 months ago | 2 answers | 0

### 2

Question

How to show selected points and connect first point to last point?
Hi all, I have the following code: [x,y]=ginput(); % user can chose any number of coordinates by clicking on graph plot(x,y);...

2 months ago | 1 answer | 0

### 1

Question

Identification of overlapping points
Hi all, I have the following code. hold on for r=10:5:24 % r is radius circles(r,17,12); % using circles function f...

3 months ago | 1 answer | 0

### 1

Question

What is the syntax for iterating over given coordinates, using a For loop?
I have the following code: X1= [10 12 14 23 24 23 18 16 12 10]; Y1= [20 20 18 15 8 7 8 6 12 20]; for i= X1 and j=Y1 %c...

4 months ago | 1 answer | 0

### 1

Question

How do I tell matlab to identify vertices within ROI?
I want matlab to identify all vertices of the hexagons that will be within an ROI. That ROI can be of any shape (it can be an ir...

5 months ago | 0 answers | 0

### 0

Question

I want MATLAB to identify the overlapping area.
I have a hexagonal grid. The following is its code: l=10; k=12; C=rand(l,k); xhex=[0 1 2 2 1 0]; yhex=[2 ...

5 months ago | 2 answers | 0