Answered
How to merge red and blue images on white background with transparency
Does it look acceptable if you just average them? weightR = 0.5; % Change as you want it. weightB = 0.5; dblImage = weightR *...

8 months ago | 1

Answered
edge detection operator error
It seems to work fine: a = imread('peppers.png'); figure; imshow(a); b = rgb2gray(a); figure; imshow(b); c = edge(b,'sobe...

8 months ago | 0

Answered
Apps created with app designer are not displaying components positioned correctly
Yes, what you say is very true. I've spent hours with tech support to find some solution to the App Designer layout nightmare. ...

8 months ago | 2

| accepted

Answered
How i crop the image using image processing?
I made an attempt to recover your original image using rgb2ind. Try this. Adjust threshold if you want. Raise it if you want ...

8 months ago | 0

Answered
In App Designer, how can I ensure that the values displayed on the UI do not appear in scientific notation?
Where or how are you displaying them? If you're using fprintf or sprintf, use %.3f or %g in your format specifier. If you're j...

8 months ago | 0

| accepted

Answered
MNPBEM Error - Issue with dot product in tripolygon file
That does not seem to be a Mathowrks toolbox. I suggest you supply your faces and vertices in a .mat file to the publishers of ...

8 months ago | 0

Answered
How do I redraw a picture given to me using its data points that I've found using the curve fitting app?
There may be other errors, but for one, you can't use 0 as the index into an array: D(0,0,0)=1; % Will throw error. Indexing s...

8 months ago | 0

Answered
Cannot install Matlab 2006b on my Windows 11 laptop
See the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_an_error_message,_does...

8 months ago | 0

Answered
MATLAB Classification Learner App
Here is what the AI Chat Playground says: Question: Does ClassificationLearner app use the same training and holdout sets for a...

9 months ago | 0

Answered
Hello everyone, I need help. I am working on a robot arm project using MATLAB and a webcam to detect colors. Do you have any lessons or tutorials for me?
Sounds like you have a very controlled environment with known and fixed colors. What you could do with the image is to first ma...

9 months ago | 0

| accepted

Answered
Connecting points on opposite end of mask
If you can get the inner boundary and outer boundary as separate arrays, then it would be easy to find the boundary point closes...

9 months ago | 0

Answered
I am trying to find each particle area and each particle intensity through matlab.
Not sure what you mean by "Gaussian method" or by "I want to calculate individual or each particle intensity not the mean intens...

9 months ago | 0

Answered
How can I extract the crack from the noise and human drawn grid lines?
What I would do is to first get rid of the grid lines, then analyze what's left for cracks. To determine the grid line location...

9 months ago | 1

| accepted

Answered
background subtraction to detect human
If the common background is not zero then the images are not registered (aligned) or the brightness (pixel values) of the backgr...

9 months ago | 0

Answered
Estimate area under a curve using finite approximations (lower sum with 4 rectangles of equal length)
Try this: f= @ (x) x.^2; x1=0; x2=1; n=4; totalArea=0; dx=(x2-x1)/n; % width of rectangle x = linspace(x1, x2, ...

9 months ago | 1

Answered
your mathworks account login session has expired
I've notified the Mathowrk account team of the issue and they are looking into it. In the meantime, someone called them and the...

9 months ago | 1

Answered
Stuck in installation process after accepting terms of license agreement
Try the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_an_error_message,_does...

9 months ago | 2

| accepted

Answered
How can I plot a 3D parabolic trajectory?
For what it's worth, see my attached demo where I compute just about everything you could want to know about a projectile and it...

9 months ago | 1

Answered
Help my password doesn't work to install updates
Can you login to the mathworks.com site from your internet browser with the same password? If not, try changing it then logging...

9 months ago | 1

Answered
How to remove least significant bits in a pixel.
A simple method that works for both color and gray scale images is to use bitand: inputImage = imread('lena.jpg'); % Set last ...

9 months ago | 0

Answered
how to convert index image into rgb image
When you did this: [X1,cmap]=imread('c09_1.tif'); Did you check the value of cmap? It's probably empty and so passing it to i...

9 months ago | 1

Discussion


Stock Market Volatility
It seems like the financial news is always saying the stock market is especially volatile now. But is it really? This code wil...

9 months ago | 1

Answered
How can I use table() with a variable number of columns?
Yes, you're going to have to do something. If you have more variables that you want to add to a column or columns you want to r...

9 months ago | 0

Answered
Matlab system command to run exe with inputs not working, command window pop-up
Did you leave anything out or is that exactly as you have it in the command window? Like are there any spaces in the program, l...

9 months ago | 0

Answered
Emergency
To make a .wav file from data, see the attached demo.

9 months ago | 0

Answered
Splitting two nearly overlapping curves
I have a demo that will fit multiple (6 in the demo) Gaussians to a curve. Change the variable in the demo if you want some oth...

9 months ago | 1

Answered
How to get a smooth scalar field on regular grids from irregularly distributed sample data?
See my attached scattered interpolant demo. It will make a smooth function everywhere. If you don't want it for certain pixels...

9 months ago | 0

Answered
Need a tangent line in my plot like the example provided but I cannot seem to do it
RhtFitted = linspace(5, 10, 1) gives only a single value, so of course no line will be plotted. You need at least two points t...

9 months ago | 0

Answered
How to present the content of a field in a program?
Try this: a.a=234.5; a.b=444; a.s='This is an example'; a fn = fieldnames(a) str = sprintf('a = \nstruct with fields:'); ...

9 months ago | 1

| accepted

Answered
Matlab 'try now' and contact customer service doesn't work
Yes, there are all kinds of problems with everybody due to some greedy evil criminals that tried to blackmail Mathworks via a ra...

10 months ago | 1

Load more