Answered
Find width and height of .jpg image
I think @Rik is right. You can't just look at the rows and columns in the image array (in the most general and robust case). Y...

2 dagar ago | 0

Answered
mathematical model to matlab code
Do you mean h = sqrt(beta0 * d^(-2))

2 dagar ago | 0

Answered
Pixel Differnce Histogram Plotting.
You can use histogram or, if you already have the counts (like from histcounts) then use bar. The title function was also used ...

3 dagar ago | 0

Answered
Unrecognized function or variable 'ApOPs'.
You don't have ApOPs on the search path. What folder does it live in? Let's say it's 'C:\MATLAB\Oligopaint' Then add this to ...

3 dagar ago | 1

Answered
Discriminate normal yellow beans from other colored beans/damaged beans.
Use the Color Thresholder app on the Apps tab of the tool ribbon. See attached full demo.

3 dagar ago | 0

Answered
resize images with zero padding
Try using padarray If you have any more questions, then attach your data and code to read it in with the paperclip icon after y...

3 dagar ago | 0

Answered
Regression analysis for enthalpy vaporization
OK, I took your data and plugged it into my demo, and altered the formula a bit to accomodate subtracting x from Tc, and I get t...

3 dagar ago | 0

Answered
Num2cell question
You say "cell structure" but it's ambiguous whether you want a structure array or a cell array. Why on earth would you want to ...

3 dagar ago | 0

Answered
How to apply a voronoi on regions rather than centroids
It sounds like you're wanting the skiz. Search the help for skiz and you'll find a demo. Also look at these Watershed transfo...

3 dagar ago | 0

| accepted

Answered
Faded text in editor
I had no such problems when I was using that version. Why not upgrade to 2022b and see if it's still a problem? Perhaps make t...

3 dagar ago | 0

Answered
correlation between two images
You never assigned S4 because you never went into the if block, which means len is not greater than len2. You need to learn h...

3 dagar ago | 0

Answered
matlab editor switching to onedrive
Not sure what you mean. The one on your C drive is in your OneDrive. You have a local copy and a cloud copy. But the local co...

3 dagar ago | 0

| accepted

Answered
Remove array elements but also store the element indices that were not removed
There are several ways. Here are two: a = ["a", "b", "c", "d", "e" ,"f"] rowsToRemove = [1, 5]; aExtracted = a(rowsToRemove)...

3 dagar ago | 0

Answered
Assign values outside a circle in an image to zero
That's answered in the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle? % Create a logical image of a circle ...

3 dagar ago | 0

| accepted

Answered
I have a problem in matlab
Attached is a demo to take a "test" (bad) image of a color checker chart and correct it such that the chip values are much close...

4 dagar ago | 0

Answered
How to do piecewise linear approximation from x and y points?
I really see no point in fitting two lines to data where there is only 6 points. With so few points there is essentially no con...

4 dagar ago | 0

Answered
MATLAB Download of Software
Yes, you can change computers. When you uninstall the software, deactivate it on the old one before you discard it (it will ask...

4 dagar ago | 0

Answered
Comparing images in groups
OK, so you don't have to try nested for loops if you don't want. You can compute the mean of everything then group the means in...

4 dagar ago | 0

Answered
If x>5 for y seconds, then z
What's wrong with tic and toc? startTime = tic; elapsedTime = toc(startTime); loopCounter = 1; while elaspedTime < 5 fp...

4 dagar ago | 0

Answered
Regression analysis for enthalpy vaporization
You can use nlmfit() to find the A and n. Attached is a demo. Adapt as needed. If you need more help, then attach your data a...

4 dagar ago | 0

Answered
Form Index Image Processing
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

4 dagar ago | 1

| accepted

Answered
I have a problem in matlab
This is a lot of work. Basically there is no "true" RGB values for the chips. The best you can do is to assume the "true" colo...

4 dagar ago | 0

Answered
How to get the edges of this mask?
bwboundaries will give you a cell array of all boundaries in the image. Each boundary is a N-by-2 list of (x,y) coordinates. H...

4 dagar ago | 0

| accepted

Answered
Angle with three points
See this answer: https://www.mathworks.com/matlabcentral/answers/331017-calculating-angle-between-three-points#answer_259649

4 dagar ago | 0

Answered
How do you find boundaries of a binary matrix developed from an image?
Yes [rows, columns] = find(binaryMatrix); topRow = min(rows) bottomRow = max(rows) leftColumn = min(columns) rightColumn = ...

4 dagar ago | 0

Answered
Segmentation not working on Dicom images
I'm not sure what you mean by the image looks greyish. It looks like the masked blob in the middle has the full dynamic range. ...

4 dagar ago | 0

Answered
I want to build the square wave: build a 6 subplot figure to show the time domain, and use respectively 1, 3, 5, 10, 50, 500 frequencies.How can i achieve this?
Start with this: allFreqs = [1, 3, 5, 10, 50, 500]; for k = 1 : length(allFreqs) thisFreq = allFreqs(k); subplot(len...

4 dagar ago | 0

| accepted

Answered
I am a beginner and this is just a short question. How can I input the matrice x=[-1 0 5 10] into an if statement and use the output to calculate Y?
You need to loop over all x if you have x in a vector like that x = [-1, 0, 5, 10]; for k = 1 : numel(x) if x(k) > 0 && x(k)...

4 dagar ago | 0

| accepted

Answered
i need code in matlab
See attached function. x = [-1; -8; -6.5]; y = [3.2; 4; -9.3]; plot(x, y, 'b.', 'MarkerSize', 50); % Find the center and rad...

4 dagar ago | 0

Answered
How to use adapthisteq on an AVI video
Yes good idea but you have a number of errors in there. Mainly that your histogram equalization is not inside your loop over al...

4 dagar ago | 1

| accepted

Load more