matlab-figure Questions
1
Solved
I'm plotting a confusion matrix as the following with colorbar in it:
What I would like to do now is keep everything exactly the same, but inverse the colors. I have tried the following code (wh...
Odessa asked 25/7, 2013 at 7:54
2
Solved
Apologies in advance for bringing a non-programming question to SO, but the powers-that-be have determined that all MATLAB-related questions belong here.
I've been doing some Kalman Filters and pl...
Toweling asked 22/7, 2013 at 14:57
4
Solved
Matlab is displaying a black border around a plot and I would like to remove it. I think i should be using something like:
set(Figure#,'PropertyName',PropertyValue);
But I'm not sure what Proper...
Lessor asked 6/2, 2012 at 20:26
2
I'm trying to produce some computer generated holograms by using MATLAB. I used equally spaced mesh grid to initialize the spatial grid, and I got the following image
This pattern is sort of wha...
Midiron asked 2/4, 2013 at 4:36
1
I am trying to overlay a colour image on a grey level image. However, when I try to plot the 'colorbar' and set the 'clim'. Matlab always produce a colorbar according to the underneath grey level i...
Swoosh asked 27/6, 2013 at 13:45
2
I'm having problems with rendering Greek characters in my labels and legends, so I thought maybe switching fonts would help. Thus, I discovered an even bigger problem - Matlab doesn't seem to honor...
Literary asked 25/4, 2013 at 15:35
9
Solved
It is generally very easy to call mex files (written in c/c++) in Matlab to speed up certain calculations. In my experience however, the true bottleneck in Matlab is data plotting. Creating handles...
Conformal asked 20/1, 2012 at 18:59
1
Solved
My current code :
a=7
f=10
T=1/f;
v=40
wl=v/f;
x1=1;
x2=30
step=0.01
t=x1:step:x2;
x=x1:step:x2;
y=a*sind(2*pi*f*(t+(x*T)/wl));
h=plot3(x,y,t);
set(h,'EraseMode','xor','MarkerSize',20)
xlabel('d...
Brubeck asked 7/5, 2013 at 18:48
1
axis off Not working.
function displayResults(filename,hObject, eventdata, handles)
% Open 'filename' file... for reading...
fid = fopen(filename);
for N=6:1:10
imagename = fgetl(fid);
if ~isch...
Rutan asked 6/5, 2013 at 13:7
1
Solved
This works as I expected:
for i=1:100
hold on;
plot(i,i^2);
drawnow;
end
Ploting the points as they come in the same figure.
This on the other hand, doesn't:
for i=1:100
hold on;
plot3...
Thread asked 30/4, 2013 at 1:12
2
Solved
I am trying to run a MATLAB GUI I have created. If I open the .fig file using GUIDE and press the run button there, it runs perfectly.
However, when I double-click the .fig file in the 'Current Fo...
Mord asked 28/3, 2013 at 9:55
2
Solved
I'm trying to change the image axis labels with some latitude/longitude but I can't find how to do it. I tried some basic commands like:
imagesc(data)
axis(meshgrid([-180:20:180],[-90:20:90]))
col...
Marcenemarcescent asked 25/2, 2013 at 16:2
1
Solved
In Matlab, if we do not rotate the y-label that contains several letters, the label may overlap with the tick numbers or even the y-axis. We can increase the distance between the y-label and the y-...
Oppression asked 30/1, 2013 at 18:35
3
Solved
Consider the following example code:
load sumsin;
s = sumsin+10; % example data series
time = linspace(0,5*24,1000);
figure(1);
subplot(311);
plot(time,s,'k');
subplot(312);
plot(time,s,'k');
h...
Hixson asked 24/1, 2013 at 12:13
1
Solved
I would like to create a plot of the 3D surface that spans over all points from an [X,Y,Z] point cloud. For example this is a scatter plot of my point cloud:
scatter3(X,Y,Z,5,C)
As you can see ...
Knighten asked 13/9, 2012 at 11:57
2
Solved
I have 3D data plotted using the 'plot3' function. I would like to constrain the Y and Z axes such that they are equal in scale. The X axis should be automatically scaled as usual.
I know from here...
Unexacting asked 10/8, 2012 at 12:0
1
Solved
I cannot seem to get my image to display the coordinates of my mouse cursor, and also use ginput to store points at the same time.
I currently am trying the following:
MriHotrod = imread('Image.b...
Laxation asked 12/7, 2012 at 17:24
3
Solved
In MATLAB, I plot many different vectors to a figure. Now, what I would like to do is simply undo the last vector that I plotted to that figure, without clearing everything else. How can this be ac...
Garnes asked 10/7, 2012 at 18:2
1
Solved
Here's the setup:
I've got a graphical plot of data, and I'm trying to find if it's feasible to try to put a box on the figure that can be moved and changed in width and return some values like pe...
Arteaga asked 12/6, 2012 at 14:26
1
Solved
I have a figure that I want his name to be Step 2 of 3: Simulation Plot Window, but its name is: figure 2: Step 2 of 3: Simulation Plot Window.
How can I change his name to the name I want?
I do...
Dutra asked 7/6, 2012 at 9:20
2
Solved
Drawing bifurcation diagram for 1D system is clear but if I have 2D system on the following form
dx/dt=f(x,y,r),
dy/dt=g(x,y,r)
And I want to generate a bifurcation diagram in MATLAB for x versu...
Pravit asked 21/5, 2012 at 22:31
2
Solved
How can I change the base value on the following barchart from 0 to another value (eg 0.001)? Right now it looks plain silly:
Code:
h=bar(matrix);
set(gca,'YScale','log')
Bonus points / good ...
Binominal asked 4/3, 2012 at 10:27
1
Solved
Has anyone come up with a way to make thumbnail type previews for matlab figures in windows?
I'm getting tired of saving a .png along with the .fig file just so I know what was in it.
A useful h...
Ingulf asked 17/2, 2012 at 0:52
2
Solved
Is there a way to know how many figures are opened in matlab?
Polley asked 9/1, 2012 at 14:37
2
Solved
I have the following code and I want to combine phase space plots into one single figure.
I have coded the functions, but I don't know how to make MATLAB put them into one figure. As you see, it i...
Aruba asked 7/1, 2012 at 20:39
© 2022 - 2024 — McMap. All rights reserved.