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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 2

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 2

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

Risposto
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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 3

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

Carica altro