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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

| accepted

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

alrededor de 8 años ago | 2

| accepted

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 2

| accepted

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

Answered
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

alrededor de 8 años ago | 0

Answered
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(...

alrededor de 8 años ago | 0

| accepted

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

Answered
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'); ...

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 3

| accepted

Answered
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]; ...

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 1

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

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

alrededor de 8 años ago | 0

Load more