Answered
Shift Map in App Designer
Since the worldmap function does not currently support setting parent axes, you'll have to create the plot in an external figure...

6 years ago | 0

| accepted

Answered
App Designer: Subplots in uiplane
Since this isn't your code, I don't have to worry about sounding insulting when I say that this code is a mess! :) I wouldn't ...

6 years ago | 1

| accepted

Answered
Custom Colors for Stacked Bar Chart
Set the FaceColor property to Flat and then define the colormap which specifies the color for each segment. Here are two demos...

6 years ago | 0

Answered
How to close an uialert programmatically
The uialert window cannot be programmatically closed, at least not in r2020a. You can, however, make the uialert non-modal whic...

6 years ago | 0

| accepted

Answered
extract data from structure into table with multiple columns instead of one column
Change T2 = [T2; ICA_selected] % ^ vertical concatenation to T2 = [T2, ICA_selected]; % ^ horizontal concatena...

6 years ago | 0

| accepted

Answered
how can I increase the patch animation speed?
In addition to Star Strider's advice to use getframe, check out drawnow limitrate which will limit the number of times drawnow i...

6 years ago | 0

Answered
Variable X-Tick Labeling
The cleanest solution IMO is to convert your datetime values to the fiscal year values and use the fiscal year values to plot yo...

6 years ago | 0

| accepted

Answered
Multiple X axis in different scale, but one y axis
Matlab does not support mutliple x axes other than the axes at the upper and lower borders of the plot. One way to include mu...

6 years ago | 2

| accepted

Answered
Change the color of each group in boxplotGroup
"Is it possible to have both a in each group green; and have both b in each group yellow?" Yes. Use the "colors" propery but i...

6 years ago | 1

| accepted

Answered
Making a contour plot from x and y data
The bivariate density can be computed using histcounts2. You'll need to specify either the number of bins or the bin edges for ...

6 years ago | 0

| accepted

Answered
Checking the dates and times
Why not use a UI such as https://www.mathworks.com/help/finance/uicalendar-graphical-user-interface.html https://www.mathwork...

6 years ago | 0

| accepted

Answered
Overlay plot of UIAxes
You can plot the line using xline() and then merely update it's Value property to move it. The line's handle must be stored as a...

6 years ago | 1

| accepted

Answered
Text beside the pointer in ginput
No can do. The ginput function suspends all interactive properties of a figure window so even if a WindowsButtonMotionFcn func...

6 years ago | 1

| accepted

Answered
Generation of random numbers in batches
The seeds below are chosen arbitrarily. rng(1) a = rand(1,100); rng(2) a3 = rand(1,100); a2 = [a,a3] You don't even ...

6 years ago | 0

Answered
Matlab still busy a long time after last line of script is executed
This is a known issue with Live Editor. See this potential solution. https://www.mathworks.com/matlabcentral/answers/535869...

6 years ago | 0

| accepted

Answered
Plotting graph in the appdesigner from the object handle - h
The show() function within the OpenIf classdef creates its own indpendent figure and axes. The only way to show the plot within...

6 years ago | 0

| accepted

Answered
Time axis as x axis
Assuming you've got a vector of time stamps the same size as the signal vector, convert the time stamps to datetime values and t...

6 years ago | 0

Answered
How long i can try out the matlab online course?
https://www.mathworks.com/learn/tutorials/matlab-onramp.html The self-paced courses are available for as long as you have a val...

6 years ago | 0

| accepted

Answered
How to random a chart?
Use random permutations. Apply this example to your data. words = ["A" "B" "C" "D" "E" "F" "G" "H"]; randIndex = randperm(n...

6 years ago | 0

Answered
How to plot a graph using if function
I don't see any plotting commands so I don't know what kind of plot you're trying to create. The problem can likely be solved ...

6 years ago | 0

Answered
app designer tab control question
app.UIAxes.Toolbar.Visible = 'off'; %|__________| replace with your axis handle. More info on the axis toolbar: https://w...

6 years ago | 1

| accepted

Answered
Load variables from worspace to app designer
That's bad design. What if the variable isn't in the base workspace? What if the variable name in the base workspace changes...

6 years ago | 0

| accepted

Answered
How Matlab calculate randsample using randsample function
randsample(n,k) or randsample(population,k) merely creates a random permutation of your data (1:n or population) using randperm....

6 years ago | 1

| accepted

Answered
Summing multiple variables and plotting them.
A = sum([psi1,psi3,psi5,psi7]); % Result: 1x1 % or A = sum([psi1;psi3;psi5;psi7]); % Results: 1x2 (length of x) The squar...

6 years ago | 0

| accepted

Answered
how to plot a gaussian 1D in matlab
Parameterized Gaussian distribution function (no toolboxes needed) This anonymous function produces a normal probability densit...

6 years ago | 10

| accepted

Answered
creating multiwindow apps in app designer 2020a
The starup function in app 2 will have its own 1st input "app". You shouldn't pass that into the app. Try this. app.DialogA...

6 years ago | 0

| accepted

Answered
How can I show radial ticks and axis on top of a polar plot?
The older answer you pointed to refers to the older polar() function which uses a cartesian plot to create the polar axes and li...

6 years ago | 1

Answered
How to save UITable into Excel for AppDesigner MATLAB?
The data are stored in the Data property of a UITable within a mxn cell array. For Matlab r2019a or later, use writecell() to w...

6 years ago | 0

| accepted

Answered
White space at the beginning and ending of xaxis
axis(ax, 'tight') % where ax is your axis handle. will set the axis limits so the edges of the plot touch the max and min of ...

6 years ago | 2

| accepted

Answered
given that you have this line of code how do you count the number of points in each quadrant ?
@Afua Amoako Dadey You just need to modify either of the two answers received for similar questions in the past (listed under ...

6 years ago | 0

| accepted

Load more