Answered
How to eliminate the jaggedness of the picture drawn by Matlab
The jaggedness is called aliasing and it happens when in image, shape or function is downsampled, for instance when an exact fun...

6 years ago | 1

| accepted

Answered
Help with creating clustering
I think the biggest problem here is that you have very few data points. Have you tried looking at the various options on this p...

6 years ago | 0

| accepted

Answered
Cant change the background using image segmentaton
This image looks like a real nightmare for edge detection etc and I don't know if you are really every going to get something sa...

6 years ago | 0

Answered
Cropping image with Bounding Box
What sort of image is 'IMG_1800.jpg'? Because regionprops expects a logical or labelled image as the first input. If your imag...

6 years ago | 0

Answered
How to trace (detect) the boundary changing under compression?
It seems like you have 3 regions; a light background a darker inner ring and then a really dark core. You want to detect the in...

6 years ago | 0

Answered
Multiple Y variables in RealTime
If you mean that distance1 has too many elements to be plotted you could just downsample it - i.e. by taking every 10th or 100th...

6 years ago | 0

Answered
Refreshdata slowing down unrelated plots/functions
I'm not really familiar with uicontrols, but you could try clearing your axes when they are updated. i.e. function update_plot...

6 years ago | 0

Answered
Error of subscript indices must either be real positive integer or logicals.
Run this command at the command line: dbstop if error When you get your error Matlab will point you to a specific line, go the...

6 years ago | 1

Answered
SSIM between grey-scale images
Can you check by typing 'ver' in the matlab command window and telling us what shows up? Also can you type 'which ssim' in the ...

6 years ago | 0

Answered
How to change the date form in the figure from default to yyyy-MM-dd
I don't know about the Chinese system language, so I would probably suggest getting the date in whatever format you want using d...

6 years ago | 0

Answered
Calculating moving average of a 3D matrix
I don't quite understand what you want, you have a 3D matrix which is 412x314x200 and you want to get a 1x200 vector where each ...

6 years ago | 0

| accepted

Answered
Is function / variable highlighting possible in MATLAB?
I don't know about colouring functions but the rest of that colour scheme can be replicated using stuff like this: https://gith...

6 years ago | 0

Answered
Plot 2D circle image with color bar
Maybe you could adapt this: https://uk.mathworks.com/matlabcentral/fileexchange/13200-3d-polar-plot or this: https://uk.mathw...

6 years ago | 0

Answered
Visualize 4D data from pressure measurement
I have used this function on the fileexchange in the past and I think it is really good: https://uk.mathworks.com/matlabcentral...

6 years ago | 1

Answered
Subscription assignment dimension mismatch.
Type this code in the matlab command line: dbstop if error Then run your code and it will stop on a specific line. That line w...

6 years ago | 0

Answered
Meshgrid function different order
x = 0:1:5; y = 0:1:5; z = 0:1:5; [y_a, z_a, x_a] = meshgrid(y,z,x); Mesh = [x_a(:),y_a(:),z_a(:)] Or probably better: x = ...

6 years ago | 1

| accepted

Answered
How to save the data of x (in my folowing case) to an Excel file after each loop .
help xlswrite and look at the 'range' option. M.

6 years ago | 0

Answered
Personalising contour plot, map colour scheme
Would something like this work for you?: R = [linspace(0,1,100) ones(1,43) linspace(1,1,100)]; G = [linspace(0,1,100) ones(1,4...

6 years ago | 1

| accepted

Question


Multiobjective optimisation with 2D (empirical) distributions - am I doing this right?
Hi all, I have two parameters that I can vary in order to get two outputs (i.e. for every combination of X and Y I get a result...

6 years ago | 1 answer | 0

1

answer

Question


Equation for imgaussfilt?
Hi, I have been using the Matlab built-in function imgaussfilt for some time now and I need to report the specific Gaussian use...

6 years ago | 1 answer | 0

1

answer

Question


Fast 2D distance calculation
Hi all, Many of the codes I am currently using depend on a simple calculation: the distance between a single point and a set of...

6 years ago | 2 answers | 0

2

answers

Question


Power fit with 3 parameters
Hi all, I have 3 groups of XY data, these data are each pretty well described by a power function. Each group reflects a differ...

6 years ago | 1 answer | 0

1

answer

Question


Calculating mean squared error or maybe MISE
Hi all, I'm interested in comparing different bivariate histograms to an underlying 2D probability density function. Additi...

6 years ago | 1 answer | 0

1

answer

Question


Multidimensional optimisation of a collected 4D dataset
Hi all, I have collected some data where I manipulate 2 variables (X, and Y) and observe 2 outcomes (A and B). I now want to f...

6 years ago | 0 answers | 0

0

answers

Question


Merging tables using outerjoin doesn't work
Hi all, I have two tables which I would like to merge/join. These tables have a series of shared columns and then one or more c...

6 years ago | 0 answers | 0

0

answers

Answered
How to show a whole table in Matlab variable window
I found why this was happening in my case - if you assign an empty value to a table column the variable editor switches from sho...

6 years ago | 0

Question


How to show a whole table in Matlab variable window
Hi, When I make a large table and try to view it in the variable view window in the Matlab UI, instead of seeing all the values...

6 years ago | 1 answer | 0

1

answer

Question


How to understand/convert the output of ksdensity and mvksdensity
Hi all, I am trying to use Matlab's kernel smoothed density estimate functions like mvksdensity to create a smoothed 'histogr...

7 years ago | 0 answers | 0

0

answers

Question


Find points on a 3D convex hull surface
Hi all, I have a 3D convex hull and would like to populate it's surface with points. To be more specific, the convex hull giv...

7 years ago | 0 answers | 0

0

answers

Answered
Line of sight between points in a logical matrix
I think I have found a relatively simple solution that should also be quite fast. I use the inbuilt function improfile which was...

7 years ago | 1

Load more