Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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. %...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 2

Réponse apportée
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...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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]

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 1

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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,...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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 = ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 1

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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 ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Charger plus