Answered
App designer: empty figure appears when running GUI with axes plot.
Specify the axis handle hold(app.Axis_1,'on')

3 days ago | 0

| accepted

Answered
Sum Matrix excluding certain values
y = sum(MatrixA(MatrixA > 3))

3 days ago | 1

| accepted

Answered
how to change the XTick of heatmap?
I'm not sure what rule you were following to chose the x-ticks in your question (Jan1971,Jan 1972,...Dec 1986) but here's how t...

3 days ago | 0

| accepted

Answered
Can you have multiple animations running at the same time?
"I am wondering if it is possible to have multiple dots travel down the screen at the same time, but have the times offset?" It...

3 days ago | 0

| accepted

Answered
Filling missing elements in a matrix.
Use F = fillmissing(A,method); requires >=r2016b Here's a demo % Create a 20x10 cell array of integer values % and replace 1...

3 days ago | 0

| accepted

Answered
Deleted first repeated elements of an array
Here's a demo. The first section just creates demo inputs. The second section solves your question. The third section just con...

3 days ago | 1

| accepted

Answered
add more tick labels to a datenum graph
Adjust xtick axis property. This method below specifies 6 ticks that start and end at your existing tick bounds ax = gca(); ...

3 days ago | 0

| accepted

Answered
Problem with "dirty" GUI configuration
These are the kinds of errors that happen when a GUI figure is edited from within GUIDE while the m-file is paused in debug mode...

3 days ago | 0

| accepted

Answered
How to stackedplot with text data
I'm assuming you're positioning text according to this screen shot you shared in an earlier question. Since text cannot currentl...

3 days ago | 0

| accepted

Answered
Plotting cell of different sized vectors
You could use arrayfun() Here's a demo. C is the cell array containing vectors, h is the handles to each line object. C = {[...

3 days ago | 0

Answered
extrapolation from correlated data
Hint: If you're data are linear, the regression slope is the covariance between X and Y divided by the variance of X m = cov(...

4 days ago | 0

| accepted

Answered
How can i keep my variables after running the function?
" Is it possible to keep the variables once a function has run " Yes. Add outputs to your function if variables are immediate...

4 days ago | 2

| accepted

Answered
error in color/linetype argument
The list of color characters can either be a cell array of characters or a string array. Your current definition of col is a si...

4 days ago | 0

Answered
Reorder x-axis bar graph categorical
Use reordercats() cats = categorical({'Young','Older adult','MCI'}); cats = reordercats(cats,{'Young','Older adult','MCI'}); ...

4 days ago | 0

Answered
Generating Random Numbers with known probability and more
" I know I need to create a line of code that allows me to pick either 0 or 1 to represent sweet and sour ... but there is a pre...

4 days ago | 0

Answered
change color of an object
Here are the steps taken in the code below. There may be a better approach but this should get you started. See inline comment...

6 days ago | 2

| accepted

Answered
Creating a matrix of random numbers which their distributions are stored in a table?
It would be better to construct the DistFit table so that the function and the input values are in separate columns. That way y...

6 days ago | 0

Answered
how to make a perfect table
The idea is to convert your cell arrays to tall matrices or column vectors. That could be done prior to entering the values int...

6 days ago | 0

| accepted

Answered
how to plot a cute sphere
If you don't have access to the cuteSphere toolbox, you can just use this line of code below to make the sphere appear as a sphe...

6 days ago | 1

| accepted

Answered
Bode Plot Display All Stability Margins
Documentation on bode plots is a bit sparse but here's some ways to modify the plots programmatically. Use getoptions() / set...

6 days ago | 0

Answered
How to set a global random seed in a GUI?
You're on the right track. Choose a random seed when the GUI initializes and store it in your GUI using guidata() so all compon...

6 days ago | 0

| accepted

Answered
split numbers separated by commas in a sub cell array into their own column
You were on the right track with cell2mat but first you have to pad the arrays so they are all equal length. Two of the three l...

7 days ago | 0

| accepted

Answered
Greetings, Anyway to help to create ridgeline by MATLAB
Here's a demo that creates a number of guassian distributions as input. The code produces an appropriate number of contiguous s...

9 days ago | 1

| accepted

Answered
How can I change zeros matrix to 1 by specific points??
Here's a demo. When [x0,y0] is [4,3] and [x1,y1] is [6,7], a rectangle of 1 will be placed in matrix A in rows 3:7 from the to...

9 days ago | 0

| accepted

Answered
change scale for colorbar
You can set the color range of each subplot to be equal and then add a colorbar only to one of the plots. Then change the color...

9 days ago | 0

Answered
App Designer Axis Issue xlim and dataticks
I see your data are durations along the x axis. To set the axis limits, Use xlim() where the first input is your axis handle ...

9 days ago | 0

| accepted

Answered
Plotting external function in App GUI graph
Pass the axis handle into your testgraph() function so your external plotting function knows what axes to plot on. It would lo...

9 days ago | 0

| accepted

Answered
Plot continuous line based on user input
"How would I plot a line with a slope of one that goes infinitely until it hits the y axis" I'm interpreting this as a line tha...

10 days ago | 0

| accepted

Answered
List of All Timezones
Somewhere in your code timezones is being called. Search all of your files for the word timezones to find which file is printin...

10 days ago | 0

Answered
Detecting Entire Column has the same integer value
To determine which columns contain identical values, A=[1 1; 1 0.5; 1 0.5]; B = all(diff(A,[],1) == 0,1) %...

10 days ago | 0

Load more