Questions tagged [matlab-figure]

MATLAB is a high-level language and programming environment developed by MathWorks. This tag relates to the creation and manipulation of graphical plots and visualizations in MATLAB figures. For questions on the creation of graphical user interface (GUI) applications in MATLAB, consider using [tag:matlab-gui], [tag:matlab-guide] or [tag:matlab-app-designer].

MATLAB is a high-level language and programming environment developed by MathWorks.

This tag relates to the creation and manipulation of graphical plots and visualizations in MATLAB figures. For questions on the creation of graphical user interface (GUI) applications in MATLAB, consider using , or .

Additional sources of technical information on these topics include:

3812 questions
1
vote
2 answers

Plot line between all the scattered points and adjust the thickness of line according to the distance between points

Here are the coordinates that I am planning to plot, filename is Coords: x y 0.0110 0.1105 -0.2730 0.2559 0.3610 0.1528 -0.0077 -0.2520 -0.2412 -0.1979 0.0444 -0.0526 0.0543 -0.0076 -0.1710 0.1170 0.12741 -0.0448 0.0949 -0.0811 Here is…
tamkrit
  • 27
  • 5
1
vote
1 answer

Number of revolution for specific periods of time

I want to know the number of revolution in each period of time. For example, number of revolutions in period 1 is 3, and number of revolution in period 2 is again 3. But it is not necessarily that the number of revolutions in each period will be the…
1
vote
2 answers

Adding a legend when using imagesc, including white for NaN

I have a 35x43 matrix of data with vales ranging from 1-6 and lots of NaNs. I want to NaNs to be white, and the numbers to each be a different colour. I need a legend with the 6 different colour and labels on it. I can achieve most of this with the…
Hydro202
  • 57
  • 4
1
vote
1 answer

Access children of copied uipanel (Matlab)

I have created an uipanel in Matlab and placed some uicontrols on it. How can I access those uicontrols when I copy the panel? Example: panel_a=uipanel(figure); editfield=uicontrol(panel_a,…
Emanrov
  • 37
  • 2
1
vote
1 answer

labeling the x-coordinate on the dendrogram in matlab

I am still a beginner in using matlab. I would like to label the x coordinate of the dendrogram but do not know how. I had a case where I have data that will be used and stored in an excel file. An example of the contents of the data. 535110084 …
Hendrick Wijaya
  • 47
  • 1
  • 2
  • 11
1
vote
3 answers

Matlab colorbar indicator which dynamical change

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 appears , others not. Is anyone knows why? and how can…
user1640255
  • 1,224
  • 3
  • 19
  • 25
1
vote
1 answer

Hierarchically grouped boxplot

I would like to draw a boxplot with two sets of data to compare. I am willing to use Hierarchically grouped boxplot. I could just plot one set of my data using this function. I was wondering how I can use this function to plot two sets of data…
Rita
  • 23
  • 9
1
vote
1 answer

How to create a "skill-bias diagram" (meteorology)?

In my research area (meteorology) graphs within graphs are commonly produced. more information about it can be found here. Each of those lines joints up data points that have: An x-value, between 0 and 1 (values greater than 1 should not be…
1
vote
1 answer

how do you show all plots in an m-file when publishing in MATLAB R2016a?

In MATLAB R2016a if you want to publish the output of an m-file you have to click on "Publish" tab at the top, and then click on the "Publish" button. I tried to publish my m-file (shown below),however, only 1 of 4 plots shows up in the pulished…
user1068636
  • 1,871
  • 7
  • 33
  • 57
1
vote
1 answer

Plotting brownian motion matlab

First of all, I just want to say that I'm not that used to using matlab, but I need for an assignment, I'm supposed to create a "brownian movement". My code is currently looking like this: clf hold on prompt = 'Ge ett input'; size = input(prompt)…
A.Maine
  • 117
  • 9
1
vote
1 answer

How to force callback plot commands to go to desired figure window?

I have a working MATLAB function which plots data in response to GUI buttons in the figure window, including a callback which starts/stops a loop to plot movie-like frames of sequential data. The problem I would like to solve is: how can I set up…
Carl Witthoft
  • 20,573
  • 9
  • 43
  • 73
1
vote
3 answers

How to plot with specific colors the values of a matrix in matlab

I am working in matlab and I have a matrix which I would like to visualize it by giving a green-ish color to the lowest values per column/row and red-ish to the rest or different levels of red-ish depending on how close or far this values is from…
ttsesm
  • 917
  • 5
  • 14
  • 28
1
vote
2 answers

How to make a legend continue onto more rows when no room?

I have a plot with mutliple lines and I want to display the legend below the box (southoutside). The problem is that currently my legend is too long to fit on a single line. Therefore the question is how do I get a line break in my legend? Currently…
KiW
  • 593
  • 3
  • 20
1
vote
1 answer

Matlab print does not keep background transparency

I am creating surface plots with a transparent figure background in Matlab R2015b. Consider the code n=49; h=figure; [x,y]=meshgrid(1:n,1:n); surf(x,y,peaks(n),'EdgeColor','none') set(h,'Color','none') set(h, 'InvertHardCopy',…
cauchy42
  • 191
  • 2
  • 9
1
vote
2 answers

MATLAB eps export doesn't include legend box

I am trying to export figures from MATLAB in publication quality for importing into LaTeX documents. I am able to set all the graphics properties I would like, however when I export my figure as a .eps, the box around the legend disappears. MWE…
B. Thomas
  • 192
  • 9
1 2 3
99
100