Answered
Write function to convert decimal to binary
Meh. I'm going to ignore negative numbers for now. The question doesn't seem to actually mention it, though I strongly suspect...

2 years ago | 0

Answered
Extract shapes from photos as graphs using MATLAB and express them as functions
This isn't an answer to the curve fitting problem, but first things first. Fix the image so you're not trying to fit a curve to...

2 years ago | 0

| accepted

Answered
how to convert color image to gray in app designer in different windows without using imread and rgb2gray?
EDIT AGAIN: better generalization and broader support for all the oddball things I've included a number of different BMP ima...

2 years ago | 0

Answered
How should the output look like of the MSE of a median filtered image?
The error image is as expected for the thing you did, but I don't know why you're doing it. You're comparing the filtered image...

2 years ago | 0

Answered
How do you apply a 3x3 median filter on an image that is noisy (salt and pepper) , and what is it supposed to do?
This is the third time you've asked this question. Why? https://www.mathworks.com/matlabcentral/answers/2055004-i-am-not-sure-...

2 years ago | 0

Answered
How to apply low pass filter on an image
You can either use imfilter() in conjunction with fspecial() to generate the filter kernel, or in the specific case that you wan...

2 years ago | 0

Answered
I am not sure if my output is correct regarding median filters.
Line 2 creates an anonymous function that calculates the median of a given numeric array. It's what will process the image cont...

2 years ago | 0

Answered
I have a salt and pepper picture, and I need to use a median filter to remove the noise and filter it.
This answer links to demos by both ImageAnalyst and myself. The demos cover fixed-window filters, adaptive filters, and conside...

2 years ago | 0

Answered
how to averging the average the images in the folder
There are plenty of examples of how to do this already on the forum. Here's another. % some example images in the demo directo...

2 years ago | 0

Answered
enhances image by min max values
The reflexive answer would be: inpict = imread('pout.tif'); % uint8 outpict = mat2gray(inpict); % unit-scale double imshow([i...

2 years ago | 0

Answered
Extract data from the image
Why would you save an image by embedding it in a figure? Creating completely pointless obstacles is a great way to make sure no...

2 years ago | 0

Answered
How to extract data from PDF that contains a plot and a table
fname = '35517.001.pdf'; str = extractFileText(fname); % get the main table T = extractBetween(str,'Dmax','AVERAGE'); T = ...

2 years ago | 0

Answered
Change variable name across code lines
This behavior might have changed in the newer versions, but I think I have a way that might work. If you look for a place whe...

2 years ago | 0

| accepted

Answered
I need correction for following simple code of histogram equalization for the image.
It's sunday, so it's time to exercise boredom on dead questions. This is one of those questions where it's clear that the given...

2 years ago | 0

Answered
uint8 vs int8 in imshow
Imshow() is odd in that it does actually support int8 images. It seems most other IPT tools which are class-sensitive don't. A...

2 years ago | 0

Answered
Cyclic colormap for visualizing angles
Here's a comparison, for what it's worth. I'm using multiple FEX tools here, so obviously this won't run if you don't go get th...

2 years ago | 0

Answered
How to convert image to binary text file?
The error is probably because you don't have write permissions to whatever directory you're trying to write to. You'll have to ...

2 years ago | 0

Answered
MATLAB Answers Wish-list #6 (and bug reports)
[looks up] I know this is a known desire, but it sure would be nice if editor-level users could move comments/answers between...

2 years ago | 0

Answered
How to fade contour lines without contour lines?
Not that this was ever answerable, but this replicates the given figure and provides two colorbars. I have no idea what "fading...

2 years ago | 1

Answered
CANNOT WRITE ON APP DESIGNER 2023a
This is a known bug. https://www.mathworks.com/support/bugreports/1797911 Here is a list of threads describing problems asso...

2 years ago | 0

Answered
How to plot two contour filled plots of two different datasets using different colormap and caxis range in the same axis?
I just threw together two different examples using the ways I mentioned. Neither is ideal. Manipulating contour() objects is j...

2 years ago | 0

| accepted

Answered
When calling a function or indexing a variable, use parentheses.
The error message tells you what to do. diag() is a function; [1 2 3] is a vector, so: diag([1 2 3])

2 years ago | 0

Answered
Changing orientation of 3D medical PET MRI images
What's wrong with just using shiftdim(), permute(), flip(), rot90() as needed?

2 years ago | 0

Answered
Help with error arrays have incompatible sizes
Don't use == to do string/char comparison. Use strcmp/strcmpi, or better yet, just replace the whole if/elseif chain with a swi...

2 years ago | 0

Answered
IHS triangular model for RGB image
There are a few things wrong here. First, the images are not RGB. One of them is indexed color, and the other is simply a gr...

2 years ago | 0

Answered
I want to make airfoil on Matlab..please tell me code of this
Any old airfoil, eh? Start by drawing any plane curve. x = [89 4 4 3 3 4 4 12 12 96 96 89 89 88 88 88 88 96 NaN 58 49 49 45 45...

2 years ago | 2

Answered
How to change the color intensity of an image?
If you want to adjust the red and blue components as the question asked, you can do that easily enough. inpict = imread('pepp...

2 years ago | 0

Answered
Find the average of two images
% all GIF files are indexed color % you must read the maps [im1 map1] = imread('Im1.GIF'); [im2 map2] = imread('Im2.GIF'); ...

2 years ago | 0

| accepted

Answered
Multiple image thresholding and measure distance
Nothing is going to be able to automatically read the background scale from an image like that. It's also not exactly square or...

2 years ago | 0

Load more