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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Respondida
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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

casi 10 años hace | 3

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

Cargar más