matlab-figure Questions

2

Solved

I have a simple plot of y against x. y = [6,-1.3,-8,-11.7,-11,-6,1.3,8,11.7,11,6,-1.3]; x = 0:0.3:3.3; plot (x,y) As the result, the x-axis of the figure is ranging from 0 to 3.5, with scale of ...
Volunteer asked 8/10, 2016 at 4:36

1

Solved

Diff conditions: how to clear dynamic legends at the end of each iteration; how to remove fitted linear lines at the end of each iteration. I am trying to extend this answer of the thread Dynamic...
Mag asked 1/10, 2016 at 13:26

3

Solved

Running the next code I get a black bar in the colorbar that change in every loop. If I change the limits, from 200 to 2000, and run for y= x.^2 +10*i +1000, 2nd version, then the bar sometimes a...
Regrate asked 26/9, 2016 at 18:13

1

Solved

How to know the exact size and position of the axis box (without axis labels and numbers)? For example, if I use figure contourf(x,y,u,100,'linestyle','none') axis equal set(gca,'position',[0.1,0...
Bellwort asked 8/9, 2016 at 16:19

2

Solved

I would like to plot a bar chart exactly like the on in the picture below. What I am not able to do is to plot 2 sets of data, one on the left-hand side of the "0" and the one on the right-hand ...
Remembrancer asked 22/7, 2016 at 11:8

5

Solved

Is there any program able to open .fig files saved by Matlab?
Williamsen asked 10/8, 2012 at 13:25

1

Solved

The documentation for the save command says that you should delete figures if you don't want to bog down the *.mat file. I save to a *.mat file periodically, and I re-use my figure after issuing cl...
Reorientation asked 30/6, 2016 at 18:54

2

Solved

Polar histograms can be very useful for plotting stacked bar graph with multiple entries. An example is provided in the image below of the figure target. This can be made somehow easily in R with g...
Byng asked 27/6, 2016 at 12:35

3

Solved

I searched in many places and didn't find a way to do what I would like to achieve using MATLAB which is this: putting the keys (text labels) to the left of the color lines in the legend in MATLAB....
Duval asked 17/5, 2016 at 21:13

3

Solved

I'm doing more or less the following: figure for ii=1:4 subplot(2,2,ii) imshow(image(ii)) hcb = colorbar; switch ii case 1 colormap(myMap) set(hcb,'YTickLabel', .. ) set(hcb,'YTick', .. )...
Ir asked 29/3, 2015 at 15:46

4

Solved

Could you tell me how can I change an axis "multiplier"? I mean a value I circled in the picture, let's say I would like to have x10^3 instead of x10^4.
Daubigny asked 24/11, 2013 at 21:10

3

Solved

I want to give a combined title to my subplots, instead of titling each plot individually. e.g; for pl=1:4 subplot(2,2,pl) title('Test') end gives me this: If I use this: figure title...
Slam asked 3/5, 2016 at 20:16

1

Solved

I have a circular lattice and on the lattice sites I plot normalized arrows that remain in the same magnitude and change direction according to a simulation, the details of which don't matter. My ...
Ganiats asked 17/3, 2016 at 17:20

2

Solved

I have created a plot in Matlab and now I would like to add a legend with the following command: legend({'Pos1', 'Pos2', 'Pos3', '\alpha Pos4'}, 'Location', 'northeast', 'Interpreter', 'latex', 'f...
Symposium asked 17/3, 2016 at 1:36

1

Solved

I've defined the complex symbolic system : syms x sys(x) = ((10+1.*i.*x))/(20+(5.*i.*x)+((10.*i.*x).^2))+((1.*i.*x).^3); ImaginaryPart = imag(sys) RealPart = real(sys) MATLAB returned the foll...
Smew asked 6/2, 2016 at 16:11

1

I'm trying to combine a few Matlab plots into one figure and therefore I'm wondering how I can create 'normal' tiles above my plots instead of the bold titles provided by Matlab. Below an example. ...
Tarantass asked 12/1, 2016 at 9:27

4

Solved

If f is the figure handle, I wanted to use plot3(..) on it just like I would use plot(..), but this didn't work: >> plot3(f, t, real(Y), imag(Y)) Error using plot3 Vectors must be the same l...
Runofthemill asked 8/10, 2012 at 4:43

2

Solved

I'm using the boxplot function in MATLAB. I need to plot boxplots for 6 different datasets for 6 'XTicks' i.e each tick in the x axis should contain 6 corresponding boxes, whiskers, median lines an...
Antechamber asked 19/3, 2015 at 22:6

1

I use plotyy to put two plots in one graph: f = figure('Color','white'); [ax,p1,p2] = plotyy(xx, yy1, xx, yy2); ylabel(ax(1),'Phase','FontSize',18); ylabel(ax(2),'Spectrum','FontSize',18); set(ax,...
Kent asked 20/12, 2015 at 18:24

1

Solved

I have saved different Matlab plots in an unique .fig. The figure is like this: Now, I would like to introduce a filter in these plots to reduce the noises, but unfortunately I have lost the code ...
Kinsfolk asked 26/11, 2015 at 9:16

3

Solved

I need to create a two-line title in a MATLAB plot, using LaTeX in each of the lines. title({'first line','second line'}) works, but not with LaTeX. In a single line MATLAB title, LaTeX is under...
Aaronaaronic asked 6/11, 2015 at 10:30

2

Solved

I wish to insert a legend that is not related to the graph whatsoever: figure; hold on; plot(0,0,'or'); plot(0,0,'ob'); plot(0,0,'ok'); leg = legend('red','blue','black'); Now I wish to add it t...
Vaas asked 2/11, 2015 at 9:16

1

As MATLAB has changed its figure engine in R2014b I decided to rerun some of my code for getting better looking figures out of them. Unfortunately, the last one I have is a code that takes ages to ...
Egyptology asked 7/11, 2014 at 12:35

7

Solved

I have been trying to draw arrows in Matlab in my figure but they all look terrible. Also, I want my arrowhead to be a solid triangle, not a V. I tried using the packages available on the Matlab F...
Miltonmilty asked 13/8, 2013 at 16:53

1

I am plotting my data as %% Plot relative wrt to GT for each frame XIndx_lsd = linspace(1,592, size( accu_RE_lsdSlam, 1 ) ); XIndx_my = linspace(1,592, size( accu_RE_my_method, 1 ) ); plot( XIndx...
Sidekick asked 16/9, 2015 at 4:59

© 2022 - 2024 — McMap. All rights reserved.