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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Respondida
x,y coordinates in .txt to points on image
Read in the file using A = readmatrix(filename) Plot the values using the plot command where x is the first column of A and y i...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to make all but one axis visible on plot
Another simple way is to use yyaxis to create two y axes but you'll ignore the right-side axes. Also see this answer to turn ...

alrededor de 5 años hace | 1

| aceptada

Respondida
Plotting a time step response
The gaps are due to gaps in your x-values between 60 (end of t0) and 61 (start of t1) and between 120 (end of t1) and 121 (start...

alrededor de 5 años hace | 0

| aceptada

Respondida
I want to create a square wave shows in the Picture
Inputs: Define y as the step value at each step (row vector). Define dx as the x-interval (scalar). Define x0 as the starting...

alrededor de 5 años hace | 0

Respondida
How can I execute two functions with a time delay between the two calls?
If you want execution to stay "busy" during the 15 sec wait time, use a simple tic/toc evaluation. It's not clear which of the ...

alrededor de 5 años hace | 1

| aceptada

Respondida
Finding difference of array using alternative indexes
The loss of 1 value when differentiating with diff(x,1) is the expected behavior. This function computes the difference betwee...

alrededor de 5 años hace | 0

| aceptada

Respondida
Change GridSize of existing non empty TiledChartLayout object
How to change grid layout of tiledlayout in existing figure? If the tiledlayout was generated with the flow arrangement then si...

alrededor de 5 años hace | 0

| aceptada

Respondida
Why am I unable to size my GUI window once I run it?
Kaavya N, based on your previous questions, my crystal ball tells me you're using AppDesigner to create your app but my crystal...

alrededor de 5 años hace | 1

Respondida
What's the difference of tiledlayout and subplot?
tiledlayout has additional features not supported in subplot. Changing subplot would cause backward compatibility issues. Sea...

alrededor de 5 años hace | 8

| aceptada

Cargar más