回答済み
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...

10年以上 前 | 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...

10年以上 前 | 0

| 採用済み

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

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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 ...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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

10年以上 前 | 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(...

10年以上 前 | 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 ...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 0

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

10年以上 前 | 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...

10年以上 前 | 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 ...

10年以上 前 | 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 = ...

10年以上 前 | 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...

10年以上 前 | 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'); ...

10年以上 前 | 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

さらに読み込む