Answered
Run a function erverytime a new Datatip is selected (Callbacks for datatips)
You can set the UpdateFcn of datacursormode. The function will execute every time a datatip is added. You can do anything you ...

5 years ago | 1

Answered
How to write an automatic function based on the median of data to form groups of data.
% Create demo data : nxm matrix with 1 box per column rng('default') data = rand(100,15) + [1.0 1.3 0.8 0.95 1.02 1.05 1.08 ...

5 years ago | 1

| accepted

Answered
In matlab app designer, how can we connect two or three app.mlapp?
<https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html Creating multi-window apps i...

5 years ago | 0

Answered
Sending Emails with MATLAB
You probably have to re-enable the feature in your email account (more info for gmail). If you're using gmail, the link to en...

5 years ago | 1

| accepted

Answered
plot and left axis off
Turn off right-y-axis This solution is similar to another answer provided a few days ago. It uses yyaxis to add a second, inde...

5 years ago | 0

Answered
I want better packed sphere
This file exchange submission offers a method of uniform sampling along the surface of a sphere. After looking at the documenta...

5 years ago | 0

| accepted

Answered
How to display subscript for ColumnName of UITable in Design App?
If you're willing to use a different subscript letter, you can use one of the available unicode subscripts (a,e,h,i,j,k,l,m,n,o,...

5 years ago | 1

| accepted

Answered
condition on random generated data
> if row value 1 > 0.5 and column value 1> 0.6 than print true else false It sounds like you are only interested in assessin...

5 years ago | 0

| accepted

Answered
Zero correlation coefficient, example
This answer explains why NaN values may appear in correlations. Make sure your inputs avoid those errors. If you have trouble...

5 years ago | 0

Answered
Show the value of uislider
> i saw others use callback and label... and other ways. But none of these work. Well, they do work, that's what people use tho...

5 years ago | 0

| accepted

Answered
How to save an axes into an matlab figure after plotting through button down function?
I created a GUIDE-based GUI containing the two functions you mentioned and was able to reproduce the problem (in the future, you...

5 years ago | 0

| accepted

Answered
find index in a matrix without 'find' function
find() is the quickest way to return the subscript indices of non-zero elements of a matrix but it's quicker to do so without us...

5 years ago | 0

Answered
How to change to different colors for a button in MATLAB in the middle of the program execution.
> I want to continously change the color of a button in program until a user presses it An efficient method that will work in ...

5 years ago | 0

Answered
How to create and export a GIF with uifigure?
Since the animation is not controlled within a loop, I think you're stuck with using 3rd party screen recorders. I recommend sc...

5 years ago | 0

| accepted

Answered
Construct a 'Bubble Plot' from a matrix
> I want to have a sequence of colors corresponding to the the size of circles. Assuming an n-by-m matrix r should be plotted...

5 years ago | 0

| accepted

Answered
Merge two columns with missing values
This solution finds the first non-missing value in each row and assigns those values to all columns of the table. If all column...

5 years ago | 0

Answered
How can I print out a zero instead of an asterisk while row-reducing a matrix?
As explained by the MathWorks Support Team in this answer, an asterisk indicates that the fraction is too long to display. The ...

5 years ago | 0

Answered
How can I insert a uifigure in my livescript code?
Embedded figures in the Live Editor should be created with the figure() function instead of the uifigure() function. If, for ...

5 years ago | 0

| accepted

Answered
How to check the lenght of the characters in a file and how to save it using GUI
Quite a bit of guess-work going on here regarding your GUI and what it's doing but, ... (see comments) function file_Callback(h...

5 years ago | 0

| accepted

Answered
How to constantly evaluate a loop?
> Since this only evaluates at the beginning of the loop, it doesn't stop the code if the door opens after the cycle has begun ...

5 years ago | 0

Answered
How to make time shift in a vector using non integer values?
I(t-Ts)= co*n(t) +c1* n(t-Ts) I'm guessing that t has a value of 1 at some point and ts=1 nanosecond, so (t-ts)=0 at some point...

5 years ago | 0

| accepted

Answered
Create RGB matrix from dataset
scatter3(X,Y,Z,S,C) Where S is the size of the markers (a scalar value in your case) and C are your column 4 values. For geo...

5 years ago | 0

Answered
accessing variables in multiple .mlapp files - Matlab app designer
You're in luck! Matlab's documentation contains a page that specifically explains the process of sharing variables between apps...

5 years ago | 0

| accepted

Answered
How to create a colourmap from coordinates and values from excel?
The type of plot was not mentioned. If you're creating a scatter plot, it's as easy as, scatter(Lateral, Depth, 30, 'CL', 'fil...

5 years ago | 1

| accepted

Answered
Creating a rectangular pulse given the samples number and sampling frequency
If you have the Signal Processing Toolbox, use square() Otherwise create a sine wave (sin()) that fits your description and the...

5 years ago | 0

Answered
UITable.RowName='numbered'; does not work since upgrade to v2021
The 'numbered' option still works in R2021a when I test it using the two examples below (which could be added to your app's star...

5 years ago | 0

| accepted

Answered
Select one of multiple UIAxes do display it at specific position
Apply the plot to the selected axes Provide each of the 6 switches with a unique name or tag (see image below). Assign the sam...

5 years ago | 1

| accepted

Answered
Can I create a quiver plot that ends up pointing to one area?
Two versions; one uses scaled vectors and the other turns off scaling. To apply this to your work, you just need to define u an...

5 years ago | 0

| accepted

Answered
Best match location data - two tables
I'd use pdist2 to compute the pair-wise distances between your list of coordinates and the list in the database to form a matrix...

5 years ago | 0

Answered
How to create a histogram for 12 months using a time table?
% Create demo timetable dates = datetime(1999,1,1,'Format','MMM') + hours(0:364*24)'; TT = timetable(dates, randi([25,75],size...

5 years ago | 0

Load more