답변 있음
Image doesn't display correctly when using global variable
I'm not sure why using/not using global variables results in this behavior, but if you are using a GUI you could do the followin...

9년 초과 전 | 0

답변 있음
How to plot on a different screen inside of a GUI ?
If I understood your question correctly, you can specify in your call to plot the axes (or "screen") in which you want your plot...

9년 초과 전 | 0

| 수락됨

답변 있음
Set Axis With Interval
Maybe use XTick: set(gca,'XLim',[2 4]) set(gca,'XTick',(2:0.15:4))

9년 초과 전 | 2

| 수락됨

답변 있음
Does Wake Forest University have a license with MATLAB
I don't know if they do, but you can get a 30-day free trial from the Mathworks website <https://www.mathworks.com/programs/tria...

9년 초과 전 | 0

답변 있음
Adjust brightness and contrast
You are probably looking for the <http://www.mathworks.com/help/images/ref/imadjust.html imadjust> command. As you can see in th...

9년 초과 전 | 2

| 수락됨

답변 있음
Matlab FOR Loop help!
Maybe try this: month = 1:12:216; x=zeros(1,length(month)); % otherwise you have a 18*18 array x(1) = a; for...

9년 초과 전 | 0

답변 있음
How to plot function
A lazy way would be like this: figure hold on plot((-3:0.01:1),0,(1.01:0.01:2),1,(2.01:0.01:3),2,'LineWidth',2) li...

9년 초과 전 | 0

답변 있음
Matlab Question Error! Index dimension error.
That's because x(n+1) is undefined when you enter the while loop. From what you posted x is a single digit and not a vector, so ...

9년 초과 전 | 0

답변 있음
how can I display several 2D images as a 3D volume?
Do you mean like playing a movie/scrolling through your images? If so I would do the following: 1) Build a simple GUI in whic...

9년 초과 전 | 0

답변 있음
I need the code of contourlet based steganography in matlab please
Good luck with that. You might want to Google it and look at the papers already published since people here will unlikely develo...

9년 초과 전 | 0

답변 있음
fzero function calculating all zeros within interval
If you have the Curve Fitting Toolbox you might want to use fnzeros <http://www.mathworks.com/help/curvefit/fnzeros.htm...

9년 초과 전 | 0

답변 있음
Why isn't one image white and the other black according to my code
You don't cast anything as being uint8. Try: figure, imshow(uint8(a)); then it will be black

9년 초과 전 | 0

답변 있음
If-then with a range
You're almost there! clear clc M = 1:10; N = zeros(1,length(M)); for k = 1:length(M) if mod(...

9년 초과 전 | 0

| 수락됨

답변 있음
How can I enhance the image resolution?
Yes you can. You can select the range of pixels like this: A = imread('peppers.png'); size(A) % get the size of ...

9년 초과 전 | 0

답변 있음
stupid question / pass Variables in a GUI
You can use the handles structure of your GUI to store variables. eg: function GetData_Callback(hObject, eventdata, hand...

9년 초과 전 | 0

답변 있음
How can I have thicker axis lines on only certain values using surfc?
Here is a simple way, drawing line objects at evenly spaced locations on your axis. I generate a dummy 2D plot but you can do th...

9년 초과 전 | 0

답변 있음
How do I use sprintf to create a matrix of string and number arrays?
Following on Michael's answer, what if you try this: clear clc a = {'abea','b','c'}; b = [1 2 3]; b_cel...

9년 초과 전 | 0

답변 있음
Specific image intensity for further processing.
Try this: PixelsofInterest = (YourImage == 150); % get the location of the pixels you want to analyze imshow(Pixelso...

9년 초과 전 | 0

답변 있음
sharpening image and removing noise
If you have the Image Processing Toolbox (to check if you do type 'ver' in the command window), look up "fspecial" which is very...

9년 초과 전 | 0

답변 있음
How can I Store all the possible combinations of columns of a matrix?
As a starting point you could store the output of the function 'perms' is a cell array, in which the kth cell cell contains all ...

9년 초과 전 | 0

답변 있음
Hi, by running this code, for 'val3-val1' it returns zero, would you please help me solve this weird problem?!
When I run your code I get -50. Did you do a clear before running the code? Here is what I used: clear clc A = ...

9년 초과 전 | 0

답변 있음
Create one figure from 2 different figures
I think you need to use hold on before the first plot and hold off after the last plot so that you get a sin...

9년 초과 전 | 0

답변 있음
Error line (350) imread pls help me solve it !!
My guess would be to explicitly add the tiff extension in the image name, which I modified: Eg: I=imread('C888.tif'); ...

9년 초과 전 | 0

답변 있음
How do I connect points in a scatter plot with a line?
If you want to plot both markers and a line, you can use the plot function and specify a line style that includes marker symbols...

거의 10년 전 | 3

| 수락됨

답변 있음
How to create a vector out of arrays
Try this: clear all clc Header = {'A' 'B' 'C' 'D'}; Data1 = [1 2 3 4]; Data2 = [5,6,7,8]; ...

거의 10년 전 | 0

답변 있음
Turning HitTest off for imrect
What if you inverse the order of Children in your axes? Basically you would send the rectangle at the "back" of the current axis...

거의 10년 전 | 1

답변 있음
Permute a vector by a specific ordering
You're almost there! Try this: [a b] = sort(x) y = y(b) y = 0.2000 0.5000 0.6000 0.300...

거의 10년 전 | 0

답변 있음
Intersection of two sets keeping all intersected values
Try this: a(ismember(a,b)) ans = 1 3 6 6 6 6 appears 3 times since it is at 3 locatio...

거의 10년 전 | 0

답변 있음
How to divide x and y axis in graph ?
Do you mean plot a different axis which is n times shorter? Doing x/n and/or y/n should do it. Maybe I misunderstood your questi...

거의 10년 전 | 0

답변 있음
How can I convert many .m files in a single file.exe?
When you deploy them with MCR you will be asked to include any .m file/.fig file that you want to include in your executable so ...

거의 10년 전 | 0

더 보기