Community Profile

# Loren99

Last seen: 1 day ago Active since 2021

#### Content Feed

View by

Question

How to build a function to make a working code more flexible?
Hi everyone! I have this main script which works and that finds me the passages of a satellite at a certain longitude. In this c...

2 months ago | 1 answer | 0

### 1

Question

How to solve 'Equation solved at initial point' with fsolve?
Hi everyone. I have implemented this code in MATLAB, however I obtain that: fsolve completed because the vector of function val...

2 months ago | 1 answer | 0

### 1

Question

How to use the command window in order to make a script faster and interactive?
Hi everyone! I would like to make a code more interactive using the command window. I have some variables .mat named new_x_edge...

5 months ago | 1 answer | 0

### 1

Question

How to merge two .fig images using hold on command?
Hi everyone! I need a help with the command hold on. In particular, I would like to plot both voronoi70.fig, voronoi80.fig and t...

5 months ago | 1 answer | 0

### 1

Question

How to replace double values into an array with NaN?
Hi everyone! I need a help with this code. I have a set of points at 90 meters of altitude and another set of points at 140 mete...

5 months ago | 1 answer | 0

### 1

Question

How do I insert a working code inside a while loop procedure?
Hi everyone! I have the following problem. I have built a code (which works) whose aim is to eliminate those points in the seg...

7 months ago | 1 answer | 0

### 1

Question

How do I remove elements of an array from another array?
Hi everyone! I would like to understand how to remove elements in an array. I post my code and then I explain my problem. This ...

7 months ago | 1 answer | 0

### 1

Question

How to iterate until a point satisfies a certain condition?
Hi everyone! I need a suggestion for this code. I have this code: x = [1,2,2,2,1;2,3,2,1,1]; y = [1,1,1,2,2;1,1,2,2,1]; plot(...

7 months ago | 2 answers | 0

### 2

Question

how to fill a new vector after a if condition?
Hi everyone! I have two vectors new_vrx and new_vry (each one has size 2x941) where: I would like to create new vectors: x_edge...

7 months ago | 1 answer | 0

### 1

Question

How to populate a new vector by extracting only certain elements from another vector?
Hi everyone! I would like to obtain two vectors new_vrx (with size 2xn) and new_vry (with size 2xn). I would like to keep on...

8 months ago | 1 answer | 0

### 1

Question

How to pass from a set of points to lines interpolating them?
Hi everyone! I have obtained the following skeletonization However, if you zoom, you see that the pink lines are not lines...

8 months ago | 1 answer | 0

### 1

Question

How to find the x and y coordinates of points inside a binary image M?
Hi everyone! I need a help with a code. On one hand, I have a binary image M (logical); on the other hand, I have vrx (2x658) an...

8 months ago | 1 answer | 0

### 1

Question

how to make matlab save (filename) command work?
Hi everyone! When I try to write save(filename) something strange like this happen to my code. The strange thing is that a week ...

8 months ago | 1 answer | 0

### 1

Question

Why doesn't bwconncomp detect each connected component as expected?
Hi everyone! I have the following binary image M I have a problem with bwconncomp. My aim is to generate Voronoi diagrams us...

8 months ago | 1 answer | 0

### 1

Question

How to eliminate some useless lines in an image?
I would like to know if exist a method that cancels the blue lines directly attached to the yellow shapes; for example obtaining...

8 months ago | 1 answer | 0

### 1

Question

How to obtain the coordinates in a MATLAB image as I move the cursor of the mouse on it?
I have obtained the following image (which is the binary matrix M). I would like to know if there is a way to get the coordinate...

8 months ago | 2 answers | 0

### 2

Question

How to set up the axes of a binary Image?
Hi everyone! I would like to know if there is a method to set up the axes of a logical matrix which is a binary image. In the m...

8 months ago | 2 answers | 0

### 2

Question

How to plot 3D vectors on a 2D plot?
Hi everyone! I need to create a 2D plot where the elements that are at z = 1 must be at the same level of the elements at x and ...

8 months ago | 1 answer | 0

### 1

Question

How to create a graph of pixels?
I have this Matlab code that gives me in output this image in which I have a graph that sorrounds the obtacles. My idea now is t...

9 months ago | 1 answer | 0

### 1

Question

Lomb Scargle Periodogram gives me an unexpected peak in the final plot
Hi everyone! I have applied plomb to obtain the lomb scargle periodogram of my function. However in addition to the most signifi...

1 year ago | 2 answers | 1

### 2

Question

How to create an interactive menu in the command window?
Hi everyone! I need to make this code smarter and more interactive. In particular, I would like the user to select the presence ...

1 year ago | 1 answer | 0

### 1

Question

How to reduce angle values in a range between 0 and 360 deg?
Hi everyone! I have obtained the angles alpha, beta and gamma in deg. However I would like to make a plot with values of gamma i...

1 year ago | 2 answers | 0

### 2

Question

How to make a plot in function of timetables expressed in UTC ?
Hi everyone, I need to make a plot of the values in the third column in the file Dates.txt in function of the timetables UTC in...

1 year ago | 1 answer | 0

### 1

Question

How can I correct the wrong size of a variable (matrix instead of a vector)?
Hi everyone; I have a problem with this code. My aim is to plot m_app of a cube (6 facets) in function of times, so I would like...

1 year ago | 1 answer | 0

### 1

Question

How to get a column vector for all the considered time instants?
Hi everyone. I have a problem with this code. At the end I would like to obtain the r_ORF column vector for all the time insta...

1 year ago | 1 answer | 0