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

How to plot an analysis picture in matlab

I want to make a plot like this one in MATLAB: I searched in google but I did not find any way to do it in MATLAB. How can I do that figure in MATLAB? Does not need to be exactly the same plot but the same info must be involved in the plot. Thanks
Joe
  • 109
  • 1
  • 8
1
vote
1 answer

How to fix axis mismatch between streamslice and imagesc plot?

I am trying to plot the streamlines (vx, vy), velocity along x and y of a data set on top of a imagesc of the vz, velocity along z. The data set and the streamline-plot is shown in this MWE: x=[0 0.0125 0.0250 0.0375 0.0500, 0 …
BillyJean
  • 1,537
  • 1
  • 22
  • 39
1
vote
1 answer

Graphing problems with a symfun

Currently writing a symfun with one input and three outputs. The equation is exp(x) -3*x.^2 +1. Input is x and the outputs are the equation itself (denoted by f), its first derivative (denoted by fp) and the second derivative (denoted by fpp).…
Matlab rookie
  • 23
  • 1
  • 6
1
vote
0 answers

Calculate the shortest path by FMM

I calculate the shortest path between two cities in the railroad network by FMM tool downloaded from here. But it can not get the symmetrical distance (the distance from city A to city B is not equal to the one from city B to city A). Exchanging…
XJ.C
  • 215
  • 3
  • 9
1
vote
1 answer

Heights of automatic contour lines in Matlab

I do not know if this is the exact site for my question, but as far as I understand the FAQ correctly one can ask questions regarding one specific software algorithm from one specific language. I have several 2D matrices (containing NaN's) for which…
C.B.
  • 80
  • 5
1
vote
2 answers

How to remove the track of a N point matlab animation

I have animated the motion of N points in 1D. The problem is that I cannot find a way to get rid of the previous plots and remove the tracks created in the motion. function sol=Draw(N) %N is the number of points PointsPos=1:N for…
Fisiquin
  • 69
  • 8
1
vote
1 answer

Why is MATLAB's legend function so slow, and how to optimize?

Problem In a GUI I've written I've realized that the largest bottleneck in my code performance is creating/updating the legend. Currently I delete and recreate the legend at each update of the GUI as the user needs to be able to adjust what is in…
Skogsv
  • 494
  • 3
  • 14
1
vote
1 answer

How to build overlapping normal distributions in matlab

I built two normal distributions. I tried to combine both into a single image, with the two images overlapping partially and both being the same size and fitting on the same axes. here's what I did: x = [-2.5:.1:2.5]; norm = normpdf(x,0,1); y =…
1
vote
1 answer

Center the strings in a popupmenu in Matlab's GUIDE or programmatically?

I am looking to have all of the strings in a popupmenu centered in the menu. Now they are all left aligned and it just looks a little off. Is there any way to do this easily?
Jtt3mr
  • 25
  • 4
1
vote
1 answer

Coordinating overobj and toolbar buttons to set pointer in Matlab

This post shows how to use the overobj function to set the pointer to change over the axes part of a gui. The problem is that this will override the pointer shape set by the zoom or pan toolbar buttons. I can test for various toolbar buttons being…
Llaves
  • 683
  • 7
  • 20
1
vote
1 answer

Is there a way to execute MATLAB Figure window menu items via command?

I found a neat bit of code for setting drawing tools via callback: draw.m . Edit My apologies - I didn't realize that the Name property was a red herring - it is the annotation call that enables drawing the various figures. So my corrected question…
Carl Witthoft
  • 20,573
  • 9
  • 43
  • 73
1
vote
1 answer

MATLAB GUI - Accessor method or property edit? What's best practice?

I'm learning how to program MATLAB GUI's and am using GUIDE. I'm curious what is considered better practice: using the MATLAB 'set( )' function to edit an objects property, or simply the dot operator to edit the objects property. Say for example I…
Izzo
  • 4,461
  • 13
  • 45
  • 82
1
vote
1 answer

figure printing in matlab using function handle

Hi I would like to do the following in Matlab Suppose I have a function which plots something function # call 1 function # call 2 function # call 3 function # call 4 Consider that all the above functions will plot a figure in matlab window. How can…
roni
  • 1,443
  • 3
  • 28
  • 49
1
vote
1 answer

Changing Axis parameters Font to Arial in MATLAB

I Need to Change the font of Axis Parameters to Arial. What amendment in the code is required? I am already defining my axis Parameters in Arial Font but it is not working? Thanks newfigure = h_figure; % fsize=[0 0 9 7]*1.394; % Genesys fsize=[0…
KHAN6691
  • 11
  • 1
  • 4
1
vote
1 answer

Using Enter as Accelerator in MATLAB UIMenu

I'm building a GUI in MATLAB and currently adding custom menus using uimenu. I'm trying to add different accelerators to different menu actions. I've found that passing char(10) (newline) as the accelerator character in uimenu (see below) matlab…
Skogsv
  • 494
  • 3
  • 14
1 2 3
99
100