Respondida
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...

alrededor de 2 años hace | 0

| aceptada

Respondida
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...

alrededor de 2 años hace | 1

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

| aceptada

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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 ...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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_...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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 ...

alrededor de 2 años hace | 0

Respondida
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.

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

Respondida
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...

alrededor de 2 años hace | 2

| aceptada

Respondida
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 ...

alrededor de 2 años hace | 0

Respondida
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 ...

alrededor de 2 años hace | 1

Respondida
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 ...

alrededor de 2 años hace | 0

Respondida
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 ...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 0

Respondida
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...

alrededor de 2 años hace | 1

Respondida
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...

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

| aceptada

Respondida
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...

alrededor de 2 años hace | 1

Respondida
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...

alrededor de 2 años hace | 0

Respondida
Assigning features to the matrix based on windowing
Why not just tack on the condition and device as the last two rows in your loop? feature{4}(k) = data(k, 2); feature{5}(k) = ...

alrededor de 2 años hace | 0

Respondida
How to determine the midline in brain images.
Hard for us to say, don't you think, without seeing an image? What is the midline? Is it just the geometric midline as determi...

alrededor de 2 años hace | 0

Respondida
Segment connected regions in binary image
See these links: Watershed transform question from tech support » Watershed transform question from tech support Marker-Contro...

alrededor de 2 años hace | 0

| aceptada

Cargar más