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 ...

13 days ago | 0

| 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...

13 days 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...

13 days 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...

13 days 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...

13 days 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...

13 days 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...

13 days ago | 1

| 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...

14 days 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 ...

19 days 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...

20 days 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...

20 days 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...

21 days 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 ...

21 days 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...

25 days 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...

25 days 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...

26 days 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...

26 days 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...

26 days 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 ...

26 days 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...

27 days 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...

27 days ago | 0

| accepted

Answered
How Matlab calculate randsample using randsample function
That syntax merely takes a random permutation of your data. So the question becomes, how does the randperm function work? You...

27 days 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...

27 days ago | 0

| accepted

Answered
how to plot a gaussian 1D in matlab
Fully parameterized gaussian function (no toolboxes needed) If you don't have the Fuzzy Logic toolbox (and therefore do not hav...

27 days ago | 0

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...

27 days 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 much older polar() function which uses a cartesian plot to create the polas axes a...

27 days ago | 0

| accepted

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...

28 days 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 ...

28 days ago | 1

| 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 ...

29 days ago | 0

| accepted

Answered
How to plot scattered data YZ with diffrent color for each slice X of 3 dim matrix XYZ
I think you're describing this. Cfull = repmat(repelem(C,size(F1,1),1),size(F1,3),1); scatter(F1(:),F2(:),40,CFull,'filled'...

29 days ago | 0

Load more