Respondida
Compressing pixelated image blocks into array
Just get rid of the ones() in your fun definition: fun = @(block_struct) mean2(block_struct.data)*ones(size(block_struct.data))...

alrededor de 1 año hace | 0

Respondida
why is my cell array being read as char
Are you sure you're getting the class of the whole cell array instead of the class of one of the contents of one cell in the arr...

alrededor de 1 año hace | 0

Respondida
How do I add generated audio to a silent video?
Did you see https://www.mathworks.com/matlabcentral/answers/434844-how-to-combine-audio-and-video?s_tid=answers_rc1-3_p3_MLT

alrededor de 1 año hace | 0

| aceptada

Respondida
Grain boundary analysis of images
You might try taking the darkest pixel in each image to combine them. Try this code: % Demo by Image Analyst % Initialization...

alrededor de 1 año hace | 0

| aceptada

Respondida
Create boundaries in an image based on porosity
Try this: % Demo by Image Analyst % Initialization steps: clc; % Clear the command window. close all; % Close all figure...

alrededor de 1 año hace | 0

Respondida
i have a matlab code with 3 for loops, in last for loop , there is threshold based penalization. i want trace some variables in that code and compare with plot
Make sure the variables you want to write out to the CSV file are all matrices (so you need to to create pout1 and put2 and inde...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to connect broken lines, but no enlarge line width?
Try this to completely fill the rectangle as you asked (untested - post before image separately if you want me to test it): aft...

alrededor de 1 año hace | 0

Respondida
I need an algorithm to fill in the blank vertical path pixels.
You need an edge linking program. You basically need to label the lines with 8-connected pixels to give a label/number for each...

alrededor de 1 año hace | 0

| aceptada

Respondida
how to find curve fiitng equation through custom equation
I understand that you've measured x and y points and you want to fit these to an equation for the discharging state of charge (S...

alrededor de 1 año hace | 0

| aceptada

Respondida
Are there any methods to remove/reduce shadows in this image?
Try the Color Thresholder on the Apps tab of the tool ribbon. Use HSV colorspace and find regions with saturation less than abo...

alrededor de 1 año hace | 0

Respondida
How to highlight a area in figure
You can try imoverlay to make the mask overlaid on the image, or you can use plot to plot a red outline at the mask perimeter lo...

alrededor de 1 año hace | 1

Respondida
steady plot end with different rate of rise question
Your plot shows an exponential decrease but the code you gave does an exponential increase. Which do you want? And is it you...

alrededor de 1 año hace | 0

Respondida
Extract individual curve from a multiple curve plot
I think the best solution is not to try to fix a mess of data but to try to prevent the mess in the first place. Was the .mat f...

alrededor de 1 año hace | 0

Respondida
MatLab crashing on Windows 11 Pro during data analysis. Memory leak and insufficient RAM likely not cause of crash. What is the cause of this problem? Log file below:
MATLAB crashes create a crash dump file (like the one you listed). I believe those files are automatically sent to the Mathwork...

alrededor de 1 año hace | 0

Respondida
How to stop command window from pasting in previous commands?
It's always been like that. There are lots of options as far as the command window goes. Go to Home->Preferences and look at t...

alrededor de 1 año hace | 0

Respondida
how can i convert pixels into cms,the code that is available online is giving error
You need to define a certain distance in your image to be a specified number of cm. Do you know the field of view? Or the widt...

alrededor de 1 año hace | 0

Respondida
poltting a linear relatioship
You can use polyfit to fit your data to a line, then use plot to plot the fitted line and the original data. Attached are examp...

alrededor de 1 año hace | 0

Respondida
Superscripts and subscripts in fprintf
See https://www.mathworks.com/matlabcentral/answers/707023-how-to-put-subscript-superscript-in-fprintf?s_tid=srchtitle

alrededor de 1 año hace | 0

Respondida
How to calculate variance, kurtosis, and skewness of a ROI (Region of Interest) in grayscale image?
See my attached demo for computing image moments. Adapt as needed.

alrededor de 1 año hace | 1

Respondida
I can't understand what my mistakes are
Looks like line 6 is really not empty. Maybe scroll to the right to see if there is a - on that line. Also t(2,1) I think is a...

más de 1 año hace | 1

Respondida
Sir, how to find area & coordinates of white pixels in binary image?
To get all the rows and columns of the white pixels, you can do [rows, columns] = find(binaryImage); You'll get two vectors an...

más de 1 año hace | 0

Respondida
how to crop a binary mask to remove all black pixels while maintaining the largest area of white pixels?
With a shape that is not rectangular you cannot "remove" ALL black pixels. However you can crop the image if you want (like to ...

más de 1 año hace | 0

Discussion


Smart MATLAB savvy dogs
Attaching the Photoshop file if you want to modify the caption.

más de 1 año hace | 2

Respondida
Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in extraction (line 32) [f0,idx] = pitch(x,fs,Method="SRH",WindowLength=win
The function called pitch() returns more than the 2 outputs that you are requesting. It takes 3 or more. What does the functio...

más de 1 año hace | 0

Respondida
PCA on an image
See my attached demo where I compute the principal components of an image.

más de 1 año hace | 0

Respondida
Trouble with installing package on offline computer
Contact Mathworks by phone for all installation related questions. It's free and immediate.

más de 1 año hace | 0

Respondida
MATLAB Code Solution Assessment
I recommend that you do not do that (check for exact syntax of their solution). Why not? Because your answer is not the only, ...

más de 1 año hace | 1

Respondida
Why does MATLAB get stuck in the "Initializing" or "Busy" state or take a long time to start?
Also see the answer Ethan got from tech support on this issue: https://www.mathworks.com/matlabcentral/answers/2053342-why-does...

más de 1 año hace | 2

Respondida
How to count the amount of small squares in this picture?
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

más de 1 año hace | 0

Respondida
How would find the average within each region?
Try (untested) function blockMean = recursiveSplit(img, origin, sizeBlock, threshold) % Extract the current block x = origin(...

más de 1 año hace | 0

| aceptada

Cargar más