Answered
My plot for a photon traveling around a black hole isn't updating.
Is h_time being updated? if yes, then it may be due to the initial display with h_traj = plot(nan, nan); try not using nans bu...

11 months ago | 0

Answered
Change size and location of plot area in plot window
You need to learn how to use the handles. Instead of just plotting things, grab the handle to the figure and the axes and then...

11 months ago | 0

Answered
Trying to randomly permute a time series, error with time point
A=[1 2 3 4 5 6 7] A(1:3) A(-1:2) Yes, Matlab needs the index of the position starting from 1, so if you use negative numbers ...

11 months ago | 0

| accepted

Answered
Create colorbar outside of parent of axes
That is easy, when you create figures and plots, you can grab the handle and then you can modify its properties: a = rand(64); ...

12 months ago | 1

Answered
to extract information from a text file?
You can solve this problem by finding strings in the text that you have. Let's save the example that you have shown in variable ...

12 months ago | 0

Answered
Can I overlay a large number of image?
Hello You can always overlay things by summing them, say your data is a 3D stack and each layer is one of your frames, a ...

1 year ago | 0

Answered
Trying to get an answer for 'a' - while loop??
Run the code! a=0 while a<5 a = a + 2; end disp (a)

1 year ago | 0

| accepted

Answered
How to fix this error : Not enough input arguments.
Hello Most probably you are not calling the function with all the necessary input parameters, look at this example in which t...

1 year ago | 1

Answered
Is there any better alternative of four nested loops?
Hi In Matlab, if you think in matrices you can avoid many many many loops. For example, if you want to find if a column of a ce...

1 year ago | 0

Answered
How to split the last 4 elements in a column into a new column?
In Matlab is better to think of matrices than to think of columns (like you would do in Excel for instance), so think of your fi...

1 year ago | 0

Answered
Using Matlab compiler, accents are replaced by question marks.
try using the ascii code for the letters that you want to be displayed, e.g. disp(strcat('d',233,'terministes'))

1 year ago | 0

Answered
How to visualise results of regionprops3 function?
What regionprops will do is to calculate the metrics for each of the elements in your data, and you can then use these to select...

1 year ago | 0

Answered
Shifting a specific part of the graph
What have you already tried?

1 year ago | 0

Answered
How to create two-dimensional boxplots
Have a look at this code: https://uk.mathworks.com/matlabcentral/fileexchange/68006-boxplot3d-create-three-dimensional-boxplo...

1 year ago | 0

Answered
Error with plot command
I do not think this is a problem of plot, but rather that your variable has only 1 value and you are addressing a higher value. ...

1 year ago | 1

Answered
why are my programs treated as function?
Very very hard to help without the file itself, and without knowledge of what V is. I ran that line in Matlab online and worked ...

1 year ago | 0

Answered
How can I make a boxplot match at 0 with another plot?
A workaround to solve your problem is to call the boxplots with zero values in between your actual data. E.g. plot([1 2 3 4 5...

1 year ago | 0

Answered
Why there are high frequency spikes in the instantaneous frequency variation vs time curve of a faulted phase current ?
It is very different to answer this question on the abstract, please add more details and figures preferably to be able to help....

1 year ago | 0

Answered
how to slice 3d .fig file?
If I understand correctly, what you want is a slice of your 3D data, and add that to your figure (say one surface with one sl...

1 year ago | 1

Answered
selecting area on a image and Tracking the same area in the next subsequent images automatically
Ok, the first part of this problem is rather simple, if I understand correctly, you want to select a region of interest in one i...

1 year ago | 0

| accepted

Answered
How do i remove an outlier?
Use a moving filter, in your case, the best would be to replace each value by the median value of a neighbourhood, that is if yo...

1 year ago | 0

| accepted

Answered
Generate code for randomly oriented short fiber RVE?
You are not running your loops correctly. If you ident your code (control-i) you can see better: for i=1:1:N while 1 ...

1 year ago | 0

| accepted

Answered
Can we move a vertex in voronoi diagram?
Yes, quite easy: X=[1 2 1.1 1.3 1.4 1.5 1.3 1.2 1.8 2.1 2.2]; Y=[1.5 1.3 1.5 1.8 1.4 1.6 2.5 2.3 2.4 1.1 1.8]; vorono...

1 year ago | 0

Answered
Can LBP be used for flame analysis?
Assuming that LBP stands for Local Binary Patterns, I would say it depends. If you already have the flame located and segmented,...

1 year ago | 0

Answered
How to caluclate centroid of a voronoi cell of a voronoi diagram.
This is not a trivial problem especially because the voronoi algorithm does not give you a series of closed polygons, i.e. chang...

1 year ago | 0

Answered
How to detect cricket wide ball in video using Matlab .
It is not simple to offer any help here. Any image processing or video processing depends totally on the images or videos, which...

1 year ago | 0

Answered
I need help to make graphs please
It is easier to help for specific questions, i.e., you tried something and it did not work. The way you have phrased this is mor...

1 year ago | 0

Answered
Splitting a color image into sub-images only displays the yellow color
From the images it seems that your channel (the yellow one) is saturated. Have you tried to display the three RGB channels is se...

1 year ago | 0

Answered
How can i do Orthogonal and Log transformations in image processing
Hello Many of the steps that you want to do can be done with one command of the image processing toolbox https://uk.mathwork...

1 year ago | 1

| accepted

Answered
I have a problem with movie2avi in a code of 2010
Very hard to help without more details, have you tried using breakpoints along the code to stop and see what is going on? Have y...

1 year ago | 0

Load more