Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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. %...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 2

| aceptada

Respondida
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...

más de 3 años hace | 2

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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]

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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,...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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 = ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 2

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Cargar más