Answered
plot is showing blank
Your values are all Inf. Consider checking your equations. %% calculation of alpha angle for i=1:2 alpha(i)= (pi*22)/180;...

4 years ago | 0

Answered
Take the data out after using Classification Learner App
You appear to be trying to use a variable name (Character) that does not exist in your test data file. To me, it appears the ava...

4 years ago | 1

Answered
Trying to remove zeroes from dataset to determine a proper min, max, mean and median
You could replace the zeros with NaN, then use the 'omitnan' option in the mean, median, max and min functions. load generated_...

4 years ago | 0

| accepted

Answered
Training data and Testing data in Classification Learner App
I believe that, after training, you test your trained model by exporting you model from the app and predict the response of your...

4 years ago | 0

Answered
how to add elements to listbox and retrieve(select) item from listbox
You could use indexing to append a new value to the bottom of your listbox. Something like this should work (where newItem is a ...

4 years ago | 0

Answered
How to frormat Table to use Previous Values for Calculations
I would use the table variable T % original table x = (0:9)'; y = (2*x); T = table (x, y) % New Y values T.y=(2*T.x-T.y)...

4 years ago | 0

Answered
why this code doesn't run?
It runs and does not contain an error (I edited your post to run you code). The issue is that G is a single number, 1e-8, and G...

4 years ago | 1

| accepted

Answered
Box plot for column of a table with categorical variables
Not sure what your solution was, but this is how I would create the boxchart % Load data opts = detectImportOptions('fruitvegp...

4 years ago | 1

| accepted

Answered
Plot a timeseries and count the days on x-axis.
Starting in R2021b, timetables are recommended over timeseries. I would therefore do the following. load('v_wt_s.mat') % Conve...

4 years ago | 1

| accepted

Answered
Vector length is not working for my ODE graph code, anyone know how to resolve this issue? Many thanks
There are a few items I see. You call your odefcn using odefcn_script but you named it odefcn. You have to use the same name. ...

4 years ago | 0

Answered
Append values in a new column
If your tables have the same variable names (order does not matter), then just use square brackets. newTable = readtable(fullFi...

4 years ago | 0

Answered
loading ECG signal and displaying it in time doman
It would appear your mat file does not contain a variable named EKG. The fix is to use the actual name of the variable, or be su...

4 years ago | 0

Answered
How to read data from .m file in GUI?
See the answer here. You would have to run the script from the gui. Then the variables it creates would exist in the correspond...

4 years ago | 0

| accepted

Answered
plot stream over two spheres
qr1 is all NaNs. Assuming the countours are supposed to be your streamlines, you should check your equation. I'm not sure your f...

4 years ago | 1

| accepted

Answered
where do I find web server app product?
You can find instructions on downloading and installing Web App Server here.

4 years ago | 0

Answered
Index in position 3 exceeds array bounds. Index must not exceed 1.
You have a variable that is an mxnx1 array, and your code is telling MATLAB to index the 3rd dimension with a value >1. theta1 ...

4 years ago | 0

Answered
ButtonDownFunction on an image in App Designer
Use the axes ButtonDown callback function (added to app designer in R2020b). Rt click on the UIAxes and select 'Callbacks > add ...

4 years ago | 1

| accepted

Answered
MALTAB standalone desktop app deployment has error: how to identify the error message?
Have your app create a log file. See this answer for how to do that. Run the app until the error is encountered, then check the ...

4 years ago | 0

Answered
i have made a matlab code of gauss-siedel but there's a slight problem . i need to make the output print 20 iteration but i only get 18. any advice?
If you need a specific number of iteractions, use a for loop instead of a while loop.

4 years ago | 1

| accepted

Answered
3D plot in app designer with for loop.
I'm not exactly sure what you mean by 'doesn't work', but I'm guessing you only get the final scatter plot. In app designer, you...

4 years ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 1)?
Apparently there is only one row in Y, and your code is trying to access a second row. Y = 1:3 % Works Y (1,1) % Doesn't Wor...

4 years ago | 0

Answered
I have initial value problem that I have to write the right side into a vector function
The hints are in the instructions. You are not solving the problem the way you are asked to. Because your equations are coupled...

4 years ago | 0

Answered
running ble freezing MATLAB software after update
Did reverting back to R2020b fix the issue, or does it still happen? Either way, please contact support to report this.

4 years ago | 0

Answered
How to import Excel table with column of as individual variables?
Try the rows2vars function on the result of readtable. It reorients a table so that rows become variables. The variables will s...

4 years ago | 0

| accepted

Answered
i'm having issues using format short in my code
Because you are using symbolic variables. For symbolic, try using the digits function instead. syms t digits(4) E = 9000; %...

4 years ago | 1

Answered
Index in position 3 exceeds array bounds. (Must not exceed 1).
Your variable theta1 is apparently an mxnx1 array, and your code is telling MATLAB to index the 3rd dimension with a value >1. ...

4 years ago | 1

Answered
How can I replace multiple indices of a matrix with specific values?
Setting two separate values means two separate assignment commands. Since your values may not always be in the same row/column, ...

4 years ago | 1

| accepted

Answered
Did LiveScript Get Worse in 2020b?
You do need to be very intentional about when you use 'clear all', as that also clears the JIT compliled code, slowing down your...

4 years ago | 0

Answered
Create and save a table
Since you already have the variables defined, I would create a variable of data type table. varnames = ["r(m)" "b(r,t)(m)" "P(r...

4 years ago | 0

| accepted

Answered
What is the difference between
See this page: Files Generated AFter Packaging MATLAB Functions

4 years ago | 0

Load more