답변 있음
Applying Mask (elliptical shape) on contourf plots.
One way would be to use ROI tools if you have those. % some arbitrary surface data [x y z] = peaks(100); % show the conto...

약 1달 전 | 0

| 수락됨

답변 있음
Dimensions of arrays being concatenated are not consisten on workspace
Here, you're concatenating the object areas to form a variable-length row vector. area = cat(2,s.Area); Here, you're trying to...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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. %...

약 1달 전 | 1

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 1

| 수락됨

답변 있음
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...

약 1달 전 | 2

답변 있음
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...

약 1달 전 | 1

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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]

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 1

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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,...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

답변 있음
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 = ...

약 2달 전 | 0

| 수락됨

답변 있음
How to make Rounded Edges of rectangle corners with polyshape function ?
I'm pretty sure you can use hgtransform() on rectangle() objects. hg = hgtransform; rectangle('parent',hg,'position',[0 0 10...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 1

| 수락됨

답변 있음
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...

약 2달 전 | 0

| 수락됨

답변 있음
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 ...

약 2달 전 | 0

답변 있음
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...

약 2달 전 | 0

답변 있음
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...

약 2달 전 | 0

답변 있음
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...

약 2달 전 | 1

답변 있음
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...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 0

더 보기