Answered
Matlab cannot read string data
Straight out of the documentation num = xlsread(filename) reads the first worksheet in the Microsoft® Excel® spreadsheet workbo...

6 years ago | 0

Answered
how to Make a button upload a .txt file and another button to read the file and plot it in matlab app design?
When you select the file with uigetfile, the outputs need to be stored as a property of the App so all callback functions have a...

6 years ago | 1

| accepted

Answered
How can I calculate the difference between two matrix with different size?
The 2nd line of code from the image you shared creates a 3D array of size m x n x 1. The 3d line attempts to concatenate that a...

6 years ago | 0

Answered
Animated gif as icon in appdesigner
Animated GIFs are now supported starting in r2020a. https://www.mathworks.com/matlabcentral/discussions/highlights/132277-new...

6 years ago | 2

Discussion


New in R2020a: App button animation & truecolor images
<</matlabcentral/discussions/uploaded_files/1021/demoApp.gif>> *Starting in r2020a, AppDesigner <https://www.mathworks.com/he...

6 years ago | 22

Answered
creating apps communicate each other with app designer
> How to share a value in a field of an app with another app? If you have access to the app's handle or the app's figure handle...

6 years ago | 2

| accepted

Answered
Plot Line Style Error Message
Option 1 plot(x,y,'b--') option 2 plot(x,y,'--','color','blue') % or 'b', or [0 0 1]

6 years ago | 0

| accepted

Answered
How to read data from a txt file and plot them with dates on the axes
You can use readmatrix to read in your text file. I've chosen to read the date and time in as character values and then I join ...

6 years ago | 0

| accepted

Answered
How to turn off alarm using Push Button?
I'll take a shot at it... I may not have interpretted what you're doing correctly but at least this should give you an idea of...

6 years ago | 0

Answered
Plot a 100x100 grid of 1's and 0's
See imagesc() or heatmap() or image(). The axes will not be 'on' for imagesc or image but you should turn the axes on so you ca...

6 years ago | 1

| accepted

Answered
Use elements from 2d matrix as row number in a function
If I understand correctly, you're describing a lookup table where you want to match the values in MATR with the values in column...

6 years ago | 0

Answered
Need help with App designer
The hold command needs to specify the axes and it needs to be called prior to adding objects to the plot. hold(app.UIAxes, 'on...

6 years ago | 1

Answered
How Can I change the format displayed by a Table on an App?
Look at the last option listed under the ColumnFormat table https://www.mathworks.com/help/matlab/ref/matlab.ui.control.tableap...

6 years ago | 1

Answered
Calculating rms for a matrix
Check out the 2nd input to, y = rms(x,dim)

6 years ago | 0

Answered
Appdesigner Print Screen Problem - Appdesigner is a disappointment!
There are two new functions as of r2020a that address this problem, exportgraphics copygraphics They are still a little bugg...

6 years ago | 2

Answered
convert vector of doubles to a cell of strings
A=[0;1;0;1] options = {'no';'yes'}; s = options(A+1) or perhaps you'd benefit from working with logical arrays, TF = logic...

6 years ago | 1

| accepted

Answered
Converting double to a handle
Try app.EditField.Value = app.counter1; app.EditField2.Value = app.counter2; % ^^^^^^ If that doesn't fix the pr...

6 years ago | 1

| accepted

Answered
plotting three functions in the same graph with a specification
x * log(x) should be x .* log(x) % ^ and then set the y axis scale to log. set(gca, 'YScale', 'log') % Or, if y...

6 years ago | 1

| accepted

Answered
How to write array results of variable length to zeros matrix matrix?
From the example inputs/outputs given in the quesiton, I don't know what's happening to the first 0 at index 1 which doesn't app...

6 years ago | 0

| accepted

Answered
Taking the nearest decimals possible
Y = round(X,N) where N is the number of digits to the right (when positive) or left (negative). Alternativly, y = round(X*10)...

6 years ago | 0

| accepted

Answered
Import data from Excel to Matlab GUI
xlsread returns the numeric data in a matrix. The first column of your data are not numeric. Use readtable() instead.

6 years ago | 0

| accepted

Answered
writematrix: Invalid parameter name: WriteMode.
WriteMode was not available in r2019a. Here's the documentation for writematrix r2019a.

6 years ago | 1

| accepted

Answered
num2str error in textbox
Try annotation('textbox','String',['Mutual Info =',num2str(mutualInfoTotal{4})]) or annotation('textbox','String',sprintf('Mu...

6 years ago | 0

| accepted

Answered
How would I 'unplot' a figure that has just been plotted?
ax is the handle to the axes. It may appear as app.axes1 ax.Visible = 'off'; % or 'on' --or-- h is the handle to the graph...

6 years ago | 1

Answered
avoid memory issues by clear
"...is it a feasible approach to use "clearvars -except keepVariables" inside each function? " clearvars removes all variables ...

6 years ago | 1

| accepted

Answered
Get Figure for Axes in GUI from function
(So I cannot do that in GUİ, I have to create the figure in the function.) Why? Because it's 50 lines? That doesn't prevent y...

6 years ago | 0

Answered
Unrecognized function or variable 'guess_my_number'.
Matlab says the next:''Unrecognized function or variable'' or ''Not enough input arguments'' Those are two unrelated error mess...

6 years ago | 0

| accepted

Answered
how to replace '_' with a guessed word?
Here are some tips. Rename the generic variable names I created. Instead of the wordlength loop, s = repmat(' _ ', 1, wordleng...

6 years ago | 2

| accepted

Answered
why do i get this error "undefined function"
RaR could be a variable or a function, we don't know and neither does Matlab but you probably know whether it should be a functi...

6 years ago | 0

Answered
using colormap in plot3d
plot3(x,y,z) will produce 1 line object for each column of the inputs. Each line object can have its own color. So, all you hav...

6 years ago | 0

| accepted

Load more