Answered

uigetfile - forces main gui to go behind other windows

This is a known issue. See similar threads https://www.mathworks.com/matlabcentral/answers/473520 https://www.mathworks.com/m...

uigetfile - forces main gui to go behind other windows

This is a known issue. See similar threads https://www.mathworks.com/matlabcentral/answers/473520 https://www.mathworks.com/m...

10 months ago | 0

| accepted

Answered

shade area between graphs

Another solution that may be helpful is the fillBetweenAreaCurve function offered by the MATLAB Charting team on the File Exchan...

shade area between graphs

Another solution that may be helpful is the fillBetweenAreaCurve function offered by the MATLAB Charting team on the File Exchan...

10 months ago | 0

Answered

Fastest recursive search for files

Here's an Easter egg. I rarely answer non-MATLAB questions here but since I had to solve this today, I thought I'd share. Thi...

Fastest recursive search for files

Here's an Easter egg. I rarely answer non-MATLAB questions here but since I had to solve this today, I thought I'd share. Thi...

10 months ago | 0

| accepted

Answered

Odd behaviour when displaying fit results in UIAxes in App Designer (Matlab R2023b)

When plotting a cfit object using plot(ax,cfit) the x-values for the line are selected based on the axes limits. Every time you...

Odd behaviour when displaying fit results in UIAxes in App Designer (Matlab R2023b)

When plotting a cfit object using plot(ax,cfit) the x-values for the line are selected based on the axes limits. Every time you...

10 months ago | 1

| accepted

Answered

How to get a scatterhistogram in an UIAxes (e.g. Matlab App)?

Scatterhistogram creates a figure with 3 axes. You can expecify where those 3 axes should be using the optional parent argument:...

How to get a scatterhistogram in an UIAxes (e.g. Matlab App)?

Scatterhistogram creates a figure with 3 axes. You can expecify where those 3 axes should be using the optional parent argument:...

10 months ago | 1

| accepted

Answered

How to plot two figures side by side in a same plot?

tiledlayout and subplot do not work together. They each offer a means of adding multiple axes to a figure. Tiledlayout is the ...

How to plot two figures side by side in a same plot?

tiledlayout and subplot do not work together. They each offer a means of adding multiple axes to a figure. Tiledlayout is the ...

10 months ago | 1

Answered

How to update rfplots

I'm not quite sure how to interpret the problem. Here are two guesses. > if the plots are to be updated, they will be added ...

How to update rfplots

I'm not quite sure how to interpret the problem. Here are two guesses. > if the plots are to be updated, they will be added ...

10 months ago | 0

Published

Plotting with Style: Synchronizing Color and LineStyle with SeriesIndex

Guest Writer: Eric Ludlam Joining us again is Eric Ludlam, development manager of MATLAB’s charting team. Discover more...

10 months ago

Published

Creating Ridgeline Plots: From Pulsars To Pop Culture

In 1979, an English rock band produced what Rolling Stone would describe as one of the best albums of all time with an...

10 months ago

Answered

Strings are converted to cells during readtable

When using the readtable(filename,opts,Name,Value) syntax, only a limited number of name-values pairs are available as input ar...

Strings are converted to cells during readtable

When using the readtable(filename,opts,Name,Value) syntax, only a limited number of name-values pairs are available as input ar...

10 months ago | 2

Answered

Show image when i use dropdown button

You need to specify the axes handle so the image is generated in the intended axes. For example, image(app.UIAxes,__) images...

Show image when i use dropdown button

You need to specify the axes handle so the image is generated in the intended axes. For example, image(app.UIAxes,__) images...

11 months ago | 1

Answered

How to plot biggest positive and negative difference as a lines?

I believe the task is to create two lines, one that connects the biggest increase and one the connects the biggest decrease betw...

How to plot biggest positive and negative difference as a lines?

I believe the task is to create two lines, one that connects the biggest increase and one the connects the biggest decrease betw...

11 months ago | 0

Answered

Zero Padding a Table

Starting in MATLAB R2023b, you can use paddata to pad tables. LastName = {'Sanchez';'Johnson';'Li';'Diaz';'Brown'}; Age = [3...

Zero Padding a Table

Starting in MATLAB R2023b, you can use paddata to pad tables. LastName = {'Sanchez';'Johnson';'Li';'Diaz';'Brown'}; Age = [3...

11 months ago | 0

Answered

How can I create randomly scattered points between two circles?

Your solution is fine. a = 4; b = 10; N = 1000; r = a + (b-a) * rand(N,1); th = 2*pi * rand(N,1); x = r.*cos(th); y =...

How can I create randomly scattered points between two circles?

Your solution is fine. a = 4; b = 10; N = 1000; r = a + (b-a) * rand(N,1); th = 2*pi * rand(N,1); x = r.*cos(th); y =...

11 months ago | 3

Answered

How can I stack two bars next to each other on top of a single bar in a bar graph?

Is this what you're looking for? I don't know what "distance V1" is. The only change I made was to add "stacked" to this lin...

How can I stack two bars next to each other on top of a single bar in a bar graph?

Is this what you're looking for? I don't know what "distance V1" is. The only change I made was to add "stacked" to this lin...

11 months ago | 0

Answered

How to generate a surface from xyz coordinates of triangular mesh nodes

> how can I generate a clean image like the one in the second figure? This solution creates a model container based on the con...

How to generate a surface from xyz coordinates of triangular mesh nodes

> how can I generate a clean image like the one in the second figure? This solution creates a model container based on the con...

11 months ago | 1

| accepted

Answered

why can't I reproduce my random numbers

Section 1 of my answer explains how to update the code in your question to get the expected behavior. Section 2 suggests a diff...

why can't I reproduce my random numbers

Section 1 of my answer explains how to update the code in your question to get the expected behavior. Section 2 suggests a diff...

11 months ago | 1

Answered

Kombinieren von diskreten und kontinuierlichen Werten in einer heatmap

I don't see any continuous color gradients in the pdf attached to the question (screenshot below). There's a colorbar showing a ...

Kombinieren von diskreten und kontinuierlichen Werten in einer heatmap

I don't see any continuous color gradients in the pdf attached to the question (screenshot below). There's a colorbar showing a ...

11 months ago | 0

Answered

Buoy move with ocean wave

> The problem is I couldn't add the sine wave in the figure Add hold on after the first loop so that when you add the sine wave...

Buoy move with ocean wave

> The problem is I couldn't add the sine wave in the figure Add hold on after the first loop so that when you add the sine wave...

11 months ago | 0

Answered

Issue in line plot while saving in vector graphics

I recommend using exportgraphics. The results below were produced in R2023b. open para_sub_2D.fig exportgraphics(gcf,'mypic....

Issue in line plot while saving in vector graphics

I recommend using exportgraphics. The results below were produced in R2023b. open para_sub_2D.fig exportgraphics(gcf,'mypic....

11 months ago | 1

| accepted

Published

Vacation Fitness Analytics: Unveiling Insights with MATLAB

Guest Writer: Afiq Azaibi I’m happy to introduce Afiq Azaibi, a developer on the Charting Team at MathWorks...

11 months ago

Answered

Equally spaced figures in tiledlayout environment

How could I make the figures truly equally spaced? Using tiledlayout, the axes are equally spaced but the colorbar, axis labels...

Equally spaced figures in tiledlayout environment

How could I make the figures truly equally spaced? Using tiledlayout, the axes are equally spaced but the colorbar, axis labels...

11 months ago | 1

| accepted

Answered

Contourf lines showing up on PDF

I tested this in R2023a (and 23b) with the following workflow and could not reproduce the result reported in the question. [X ...

Contourf lines showing up on PDF

I tested this in R2023a (and 23b) with the following workflow and could not reproduce the result reported in the question. [X ...

11 months ago | 0

| accepted

Answered

How to color each group of a bar plot into a different color

h=bar(x,'grouped') where x is an n by m matrix, will create a bar chart with n groups that each have m bars. h will be a 1xm mat...

How to color each group of a bar plot into a different color

h=bar(x,'grouped') where x is an n by m matrix, will create a bar chart with n groups that each have m bars. h will be a 1xm mat...

11 months ago | 1

Answered

Appdesigner color scheme not working

Please contact tech support and include your release info and instructions on how you changed the color scheme. Feel free to in...

Appdesigner color scheme not working

Please contact tech support and include your release info and instructions on how you changed the color scheme. Feel free to in...

12 months ago | 1

| accepted

Answered

Using fprintf for complex numbers

Another alternative is to use num2str which supports conversion of complex numbers to strings. a = -2*sqrt(-3)+5/3 num2str(a) ...

Using fprintf for complex numbers

Another alternative is to use num2str which supports conversion of complex numbers to strings. a = -2*sqrt(-3)+5/3 num2str(a) ...

12 months ago | 1

Answered

Changing the color of a second colorbar

It looks like you want to set the color limits (clim) rather than the colorbar limits (cb.Limits). Replace these two lines cb2...

Changing the color of a second colorbar

It looks like you want to set the color limits (clim) rather than the colorbar limits (cb.Limits). Replace these two lines cb2...

12 months ago | 0

Published

Guilty pleasures: Pie Charts and Donut Charts

Guest Writer: Abby Skofield In today's article, Abby Skofield slices through the debate about pie charts and introduces two...

1 year ago

Answered

Is it possible to disable/change the default selection logic of CheckBoxTree?

As @Mario Malic mentioned, it's not possible to replace that logic. I'm curious what your use case is as to why the value of th...

Is it possible to disable/change the default selection logic of CheckBoxTree?

As @Mario Malic mentioned, it's not possible to replace that logic. I'm curious what your use case is as to why the value of th...

1 year ago | 0

Published

Gourds to Graphics: The MATLAB Pumpkin

Guest Writer: Eric Ludlam Today's graphics adventure is written by Eric Ludlam, development manager of MATLAB's Charting...

1 year ago