Answered
Changing colors in an image
OP's original image is long gone, but I can perhaps guess at its appearance. While I have my suspicions, let's start where this...

3 years ago | 0

Answered
In app designer, cursor disappears and all keyboard input stops working after clicking on window on Linux. How can I fix?
This is a bug that's been around for a while and is probably here to stay. Unless you want to change your environment for the s...

3 years ago | 0

| accepted

Answered
is it possible to select the screenshots from word document and crop them and then resize them to full page?
Here. I'm sure there are better ways, but it seems to be simple enough that I can get away with directly editing the file. %...

3 years ago | 1

| accepted

Answered
Transpose does not support N-D arrays error
There are a couple problems. First, the error is because you're feeding a MxNx3 array to interp2(). You're also feeding an int...

3 years ago | 0

| accepted

Answered
Average function of squares
Here's one basic way: proms(5) proms(11) function mm = proms(nn) % MM = PROMS(NN) % calculate the mean square of the positi...

3 years ago | 0

| accepted

Answered
operation error (red,green,blue)
Your indexing is going to cause problems. Setting channel 2 of an RGB image to 0 won't generally turn it red. I'm assuming tha...

3 years ago | 0

Answered
Is it possible that Legend location option "best" chooses only between two specified locations?
If nothing else, you could try to find the best of those two locations. Depending on what's in the plot, this may be more cumbe...

3 years ago | 2

| accepted

Answered
use array vector to form a diagonal matrix
It seems to me like maybe you're talking about what blkdiag() does. A = [1 2; 3 4]; B = A*11; C = A*111; D = blkdiag(A,B...

3 years ago | 2

Answered
Remanding integer from exponential distribution with mean
If I recall, there are other ways to do this. https://www.mathworks.com/matlabcentral/answers/327656-conditional-random-numbe...

3 years ago | 1

| accepted

Answered
Store cropped images in for loop
Keep track of array class and data scale when working with images. You likely have integer-class data, but you're storing it in...

3 years ago | 0

| accepted

Answered
How to construct a vector cell array from two cells with different dimensions
Perhaps something like this? allstationID = [vertcat(Station_ID_1{:}); Station_ID_2]

3 years ago | 0

| accepted

Answered
Expanation for function length (x)-1
That's not a function, and it's not valid MATLAB syntax either. It's hard to say what it means, because I have to assume that i...

3 years ago | 1

Answered
Celsius to Fahrenheit or vice versa
@Diego is on the right track. Instead of harrassing the user for all inputs interactively, just write a basic function that can...

3 years ago | 0

Answered
How to change all elements of a vector V to achieve the condition sum(V) equal with a upper and lower boundaries?
Well with requirements like that, I guess this is fair game. % input V = [0.1 0.002 0.5 0.2 0.1 0.003 0.4]; % parameters l...

3 years ago | 0

| accepted

Answered
In a loop, create an i x j matrix, find the average of each row, and find the minimum in which row.
The answer is simple if you avoid the unnecessary loops. inpict = uint8(randi([0 255],5,5)) % a 5x5 integer-class image rowmea...

3 years ago | 0

Answered
Using image processing toolbox on other computers
I see two questions, the latter of which is well-answered already. Aside from the prospect of compiling standalone executables,...

3 years ago | 0

Answered
Grey horizontal line in editor
%% creates a section break, which is something that can make certain work easier or more modular. https://www.mathworks.com/hel...

3 years ago | 0

Answered
How do I Cut the black edge of the image automatically
This is one way to automatically crop off nominally-solid color borders. % read the image, create a grayscale copy inpict = ...

3 years ago | 0

| accepted

Answered
How to make Rounded Edges of rectangle corners with polyshape function ?
The rotate() function only works on certain types of graphics objects, rectangles not included, You can use hgtransform() on re...

3 years ago | 0

| accepted

Answered
xlim and ylim not working for plot
You're creating two new variables called xlim and ylim. You're not actually using the functions called xlim() and ylim(). yl...

3 years ago | 2

| accepted

Answered
Exclude from plotting some coordinates (born from blank .png images)
One simple way to skip plotting those cases would be to just do this modification: for k = 1:length(imageFiles) baseFileNa...

3 years ago | 0

| accepted

Answered
understanding the matlab code
I'm just going to throw this out there. See the attached file. I don't know if it's correct WRT the Hamza paper, but it seems ...

3 years ago | 0

Answered
Magnification of a colored image through two color space: RGB & YCbCr
This has nothing to do with imresize(). The problem here is caused entirely by information loss by in intermediate YCbCr conver...

3 years ago | 0

Answered
Need Explanation of Bicubic Interpolation, in imresize inbuilt function of MatLab?
If you're out to replicate imresize(), see this answer: https://www.mathworks.com/matlabcentral/answers/888177-how-does-imresiz...

3 years ago | 0

Answered
Apply median filter to an ECG without native MATLAB medfilt
It's a simple sliding-window filter. Given a vector V: define a window width W (an odd number is convenient) pad V by padwidt...

3 years ago | 1

Answered
error "Inner matrix dimensiion must Agree"
You're trying to do matrix multiplication with arrays of incompatible size. You probably mean to do .* elementwise multiplicati...

3 years ago | 0

| accepted

Answered
how to find value in matrix based on specified location
When you select A([2,3],[3,3]), you're selecting four points. It's easier to understand in this case: A = [1,2,3,4; 5,6,7...

3 years ago | 0

| accepted

Answered
how to segment (divide) an image into 4 equal halves?
If you have MIMT, this becomes incredibly simple. MIMT imdetile() requires no special consideration of geometry divisibility, n...

3 years ago | 0

Answered
I want to ask about adaptive thresholding in my application
I have no idea what the goal is here, but I'm going to guess that it's also not generally correctly scaled. Is there any reason ...

3 years ago | 0

| accepted

Answered
Error on using movmean function -> shifted coordinates
matrix = importdata('matrix.txt'); theta = 90*3; R = [cosd(theta) -sind(theta); sind(theta) cosd(theta)]; c=mean(matrix,1...

3 years ago | 0

| accepted

Load more