Answered
enlarge a curved arc with rounded edges, only from the rounded edge
Try bwskel then bwmorph to find the endpoints. Mask off a certain radius from the endpoints then use imdilate to grow them bigg...

1 year ago | 0

Answered
How to segment an Image using threshold and region growing
Here's one possible way. I wrote the attached script to emulate what Adobe Photoshop's Magic Wand tool does. Also there are re...

1 year ago | 0

Answered
Region GRowing image segmentation
Here's one possible way. I wrote the attached script to emulate what Adobe Photoshop's Magic Wand tool does. Also there are re...

1 year ago | 0

Answered
Why did CD folder; give such a goofy error message when I just forgot ()
Since apploc is a variable that contains the actual folder name, you need to use the functional form of cd: cd(apploc); If you...

1 year ago | 0

| accepted

Answered
How do I skip items in a legend?
Every time you plot, get the handle to the points or curves. Then pass only those that you want into legend. Here is a full de...

1 year ago | 1

Answered
Smooth noisy data whilst keep absolute minimum and maximum values
In spectroscopy there are a number of baseline correction algorithms that do what you're asking. Google it. Or search this for...

1 year ago | 0

Answered
isotropic expansion for a mask with anisotropic voxels
I'm not sure how many voxels per mm you have. Is 0.9 mm the voxel width? You can use imdilate but be aware that you'll probabl...

1 year ago | 0

Answered
How to draw isolines between points?
You have to make a continuous field (grid) of values using scatteredInterpolant. See attached demo to make that field. Then us...

1 year ago | 0

| accepted

Answered
How to turn a movie into a gif?
See the official Matrhworks support team Answer: https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated...

1 year ago | 0

Answered
matlab code for face detection using RGB space color && skin color
RGB is probably the worst color space you can do skin segmentation in. HSI, HSL, LCH are better? Why? Because the skin gamut ...

1 year ago | 0

Answered
Can Matlab create an Excel object and write table to it without saving it to a location?
If you're using Windows I know how to do it. You can use ActiveX programming to open Excel as a server then send commands to Ex...

1 year ago | 0

Answered
Matlab R2024b won't start due to missing dll files
Do exactly what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_...

1 year ago | 0

Answered
How programmatically know if an Update is installed for a particular matlab release?
s = ver for k = 1 : numel(s) fprintf('#%d, Using %s, Version %s, Release %s, Date %s\n', ... k, s(k).Name, s(k).Version, s...

1 year ago | 0

Answered
Not able to see where the index is going past 5
Names only has 4 strings in it, not 5 so that's why you get the error. The code is not very robust. Here, I've improved it by ...

1 year ago | 0

Answered
How to extract pixel intensity of a grayscale image (*.jpg) to a MS Excel table
See my attached demo that writes an image out to a CSV text file that can be read in by Excel.

1 year ago | 0

Answered
Extracting metrics from cellular pattern
Try this: clear all; close all; clc % Load the synthetic detonation pattern image gray_image = imread('CellularPattern_Test.p...

1 year ago | 0

| accepted

Answered
What is the ratio of area of the flame between the last frame and the first? What is wrong with my approach? I am getting an incorrect answer upon submission.
Try different thresholds to see which one gives you the correct answer. Maybe you were not using the same threshold as the inst...

1 year ago | 2

| accepted

Answered
Extracting metrics from cellular pattern
I think I can get fairly close. Can you give the code where you start with the image and get the binary/segmented image of the ...

1 year ago | 0

Answered
Is there a meaningful guideline on when to use parentheses vs square brackets vs curly brackets in writing MatLab code?
@Jerome yes there is. If you look at this FAQ entry: What is a cell array I think that it gives a pretty good intuitive idea ...

1 year ago | 1

Answered
This is face morphing. Now I want to save and convert to a gif image format.
That is not face morphing. Morphing is not just a weighted sum of images. The image needs to be warped before adding. So you ...

1 year ago | 0

Answered
If f1(x,y)≤z≤f2(x,y), how to draw the range of z?
Do you want just the magnitude of the range, without visualizing the starting and stopping points? If so you can just subtract ...

1 year ago | 0

Answered
Unable to create a exponential graph
I don't know how to do it in Simulink, but this seems to work fine in MATLAB: uTemperatureRange = linspace(10, 200, 1000); yDe...

1 year ago | 0

Answered
How to quantify shape similarity between two vectors.
See the Mathworks page on spectral signature matching: https://www.mathworks.com/help/images/target-detection-and-spectral-matc...

1 year ago | 0

Answered
Exporting Graphs from Matlab App in PNG or JPG
Assuming it's the current/active figure, try exportgraphics(gcf, 'ECRTools.png'); in the command window. help exportgraphics

1 year ago | 0

Answered
Automatically add prefix to loaded sheetname, and output,
You have a new workbook with the new name 'reshapedMaleControl.xlsx'. If your original workbook had multiple sheets, it looks l...

1 year ago | 0

Answered
How to interpret the wrong image background of data augmentation?
Why are you calling imcomplement? Try not doing that. What is the original background: white or black? Finally, you could j...

1 year ago | 1

Answered
Matlab executable throws error in opc.ua.Client
Try including that file explicitly in your compilation, something like mcc yourapp.m -a " C:\Program Files\MATLAB\MATLAB Runtim...

1 year ago | 0

Answered
How can I apply a lowpass filter samplewise in my code?
One way is movmean.

1 year ago | 1

| accepted

Answered
What would cause Matlab to lose track of gcf()?
Don't do it like that: gcf().something. Assign something to gcf, like g: g = gcf; % No parentheses after gcf. I think a figur...

1 year ago | 1

Answered
How do I change the output color when using the disp function?
See this File Exchange entry by @Yair Altman https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatt...

1 year ago | 0

Load more