Veröffentlicht


Welcome to the MATLAB Graphics and App Building blog!
Welcome to the launch of the MATLAB Graphics and App Building blog! I am your host, Adam Danz, whom some readers may...

mehr als 2 Jahre vor

Thumbnail

Discussion


Approximating π with durations
Over the weekend I came across a pi approximation using durations of years and weeks (image below, Wolfram, eq. 89), accurate to...

mehr als 2 Jahre vor | 3

Beantwortet
overlaying graph contourf (or pcolor)
It sounds like you want to overlay three contours in one axes while being able to see through the 3 layers. Since all 3 of your...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
how to display a m_map figure on app designer
I haven't looked at the 3rd-party software but I'm guessing that its plotting functions do not offer an input argument to specif...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to get same figure size?
EPS is a vector format that contains info for every pixel which allows you to scale the size while avoiding pixelation. I wonde...

mehr als 2 Jahre vor | 0

Beantwortet
creating smaller matrix from a large matrix
Here are two more options. Neither are very readable but I knew there was a grouping solution and a vectorized solution and I w...

mehr als 2 Jahre vor | 0

Discussion


To hold or not to hold
I'm curious how the community uses the hold command when creating charts and graphics in MATLAB. In short, hold on sets up the a...

mehr als 2 Jahre vor | 4

Beantwortet
Matlab App Designer UI Axes Unable to Zoom In/Out Smoothly
Please contact tech support and include instructions how to reproduce the problem, your release information, and attach the figu...

mehr als 2 Jahre vor | 0

Beantwortet
overlapping images in grid layout
I would suggest a different approach. You could potentially have dozens of axes and just as many images in your app which could...

mehr als 2 Jahre vor | 9

| akzeptiert

Beantwortet
How to hide representative duration at datetime X-axis plot?
Starting in MATLAB R2023b, you can add, remove, or update the secondary labels using xsecondarylabel, ysecondarylabel, zseconda...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
app.UIFigure = uifigure(); creates a new UIfigure window and the original app is not accessible through app.UIFigure
@Mohd Aaquib Khan, the first two lines of my answer in the thread you linked to were just to simulate app desgner. These two ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Can sfit objects be plotted to specific axis in GUI (not a figure window)?
Starting in MATLAB R2023b, provide the axis handle as the first input to plot the fit line in your app's axes. plot(ax,___) pl...

mehr als 2 Jahre vor | 0

Beantwortet
Trouble deleting plots with circle animation
Based on the code, I think you want to delete the previous circle here (marked by a comment below). M = [3 4 6 5 8 9]; axis([-...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Visualizing figure in app designer
> Is it possible to access this x, y coordinates from the figure level or do I need to change the function so that it would ret...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
extra uitoolbar in GUI figure (R2023b)
To try to reproduce this behavior, I created a bare-bones gui in R16b and opened it in R23b but the GUI figure does not show any...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the min values and their indices for a 2D array?
Find the minimum value using min and specify all dimensions. Then use find with two outputs to find the row and column indices ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Synchronizing two timetables that contain cell arrays
synchronize and retime need to know how you'd like those functions to fill in missing data. The method property allows you to s...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why colorbar label is always beyond the limits of the figure?
> I put only one colorbar for all the subplots... I suggest using tiledlayout instead of subplot. It handles legends and color...

mehr als 2 Jahre vor | 0

Beantwortet
how to use tree in app designer
Look in app.Tree_Equity.CheckedNodes. SelectedNodes indicates which nodes are currently selected (in blue, below), not which ...

mehr als 2 Jahre vor | 0

Beantwortet
Bar graph with unequal values.
Are you expecting to see a stacked bar plot? a1 = [2 3 4 5 6]; b1 = [0.2 0.2 0.2 0.2 0.2]; b2 = [nan nan nan 35 nan]; bar(a...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Number of digits in heatmap plot except for the value 0
Replace near-0s with 0 >I want to show them as value ''0'' and not ''0.000'' and for the non-zero values in matrix I want three...

mehr als 2 Jahre vor | 0

Beantwortet
Setting two yaxes in uifigure
Try this soc = out_rulebased.SoC.signals.values time = linspace(0,10,length(ibatref_rulebased)) i_load = out_rulebased.i_load...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Prerelease version of R2023b silicon mac launch error
Please contact tech support and include the information you shared in your question.

mehr als 2 Jahre vor | 1

Beantwortet
Zooming into maps and updating corresponding bar graphs in App Designer
You could used the LimitsChangedFcn which responds to changes to axis limits. Within the function you could make changes to you...

mehr als 2 Jahre vor | 0

Beantwortet
how to close error dialog
Error dialogs produced by errordlg or msgbox produce figures. The command below will close all existing figures. close(findal...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
[HEATMAP] Display single colorbar for a multiplot
Here's a demo showing the following steps needed to create a figure with multiple heatmaps that share the same global colorbar. ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
PROBLEM WITH QUIVER ARROW SIZE
The problem The quality of arrows produced by quiver is poor in highly skewed data aspect ratios. In many cases equating the...

mehr als 2 Jahre vor | 0

Beantwortet
Low precision of floats?
vpa('0.036489973978576520559023667001244',100)

mehr als 2 Jahre vor | 3

Beantwortet
Setting default line widths for all plotting functions
This issues comes up from time to time. As @Steven Lord mentioned, there is no global setting that would apply to all LineWidth...

mehr als 2 Jahre vor | 0

Beantwortet
Making color plots that are also clear in greyscale
Converting a colormap to grayscale If you have an existing colormap c that you would like to convert to grayscale, you could us...

mehr als 2 Jahre vor | 0

Mehr laden