Answered
User Debugging Tab in Appdesigner App?
The built-in debugging tools are designed for you, the app author, not the end user. You will need to design on your own any deb...

5 years ago | 0

Answered
How can I avoid repeated figure output after a section break in Live Editor?
I don't believe you can. This behavior is built into the design of live scripts. At each section break if anything has been done...

5 years ago | 1

| accepted

Answered
Subplots years on X-axis display every year
I think this is easier if you use some newer functionality, namely datetime, xtickformat, xticks and years. All you should reall...

5 years ago | 0

| accepted

Answered
How can one change the font for graphics to sans serif?
Use listfonts to determine what fonts are available on your system. I suspect the issue here is one of spelling. In my system, ...

5 years ago | 0

| accepted

Answered
How to add String values to an array of varying size?
I'm not sure I understand what you are trying to do with your anonymous functions. The error here is because you define an anon...

5 years ago | 0

Answered
Appdesigner - Edit the column names during run time
I suspect column names are not editable. It is the values in the table that are editable. See here: https://www.mathworks.com/m...

5 years ago | 0

| accepted

Answered
Errors for groupsummary() using function handles
If you try to run the function handle with multiple inputs example from the R2021a doc in R2018b, you will get an error. That su...

5 years ago | 0

| accepted

Answered
Improving Efficiency of Find Algorithm
I wonder if this is a scenario where using tall data may help. See this page.

5 years ago | 0

Answered
Improving Efficiency of Find Algorithm
This approach may only work for this simple case, but here's a way to do it using max/min. myDataTimestamps = [10 20 30 30 30 4...

5 years ago | 0

Answered
create vector with for loop
See the part in Ch 13 of MATLAB Onramp that covers for loops.

5 years ago | 0

Answered
Appdesigner: I cant manually change value of an editfield just after opening my app
I am not able to reproduce on my computer. What type of editfield are you adding? I just created an app this morning with 5 num...

5 years ago | 0

Answered
Display first columns and rows of a table
The head function is just a helper function. Under the hood, it is just using indexing. Ch 5 of MATLAB Onramp will introduce you...

5 years ago | 0

| accepted

Answered
How to force an external function in live scrip?
You would call it the same way you would in a script. The only thing you need to make sure of is that your live script can fin...

5 years ago | 0

Answered
Reshaping the velocity data to match with generated meshgrid of x and y to further plot contour of velocity?
Your error is referring to this command: U(zeros(10^2,1)) You have already defined U, so the zeros are being interpretted as in...

5 years ago | 0

Answered
Deleting plots in app designer
Turn hold off. Best practice is to pair a hold on with a hold off. Do not turn hold on until the first plot has been created. ...

5 years ago | 0

Answered
using cumsum for a vector
Check your dimensaion. Your cumsum will be a 1xn vector. I suspect time must be an nx1. When you perform the division, implicit ...

5 years ago | 0

Answered
How to create trajectory using lat long coordinates and overlay on a geographic map on maltab?
You can use geoplot to plot lat-lon data on a geographic map. There are several examples on that page that can help you get star...

5 years ago | 0

Answered
join and synchronize two dataset with non uniform intervals
It looks like there are 409 unique times in DB1. I would use groupsummary to create your summary table with groups defined by th...

5 years ago | 1

| accepted

Answered
Recommendations on how to approach XLOOKUP/VLOOKUP/SUMIF operations on a table
Perhaps you want to look into grpstats or groupsummary? We can provide more specific advice if you can be more specific. Can yo...

5 years ago | 2

Answered
Generating N random samples which are divisible by 10 and follows uniform distribution in the interval [a,b] whose sum should be S.
I suggest using randi on an interval [a/10 b/10] and then multiplying the results by 10. X = randi([imin,imax],___)

5 years ago | 0

Answered
Saving data for each iteration in a for loop
You need to use indexing to assign the results of each loop to a new location. Look at this example on the for loop documentatio...

5 years ago | 1

Answered
App designer do not open in matlab 2021b
Your install appears to have not installed correctly. I would suggest reinstalling MATLAB. If that doesn't fix the issue, please...

5 years ago | 0

Answered
fprintf uiputfile of multiselect data file doesnt work....
The issue is with how MATLAB is plugging numbers into your format spec '%s %f %f\n'. When you supply fprintf with more than 1 va...

5 years ago | 1

| accepted

Answered
Can MATLAB read a file inside a file?
Yes, it is possible, but there is no function that will do this on its own. You will need to write your own code to parse the fi...

5 years ago | 0

| accepted

Answered
APP Design : variable form callback(1) to be used in callback(2)
How are you calling A in callback1 and callback2? This should work if A is defined as an app property You reference A using ap...

5 years ago | 1

| accepted

Answered
How to create column headers?
My preference is to use the table function to create a MATLAB table (data type table instead of structure) x = [0,10,20,30,40,5...

5 years ago | 1

Answered
How to use curvefitting toolbox to best fit an equation to a curve
Your fit equations are constraining the shape of your fit line. If you want a shape that more closely approximates the data, you...

5 years ago | 0

Answered
Three Phase Inverter Simulator
Are you open to using Simulink? https://www.mathworks.com/help/physmod/sps/ug/three-phase-inverter-control.html

5 years ago | 0

Answered
How to fix Index in position 2 exceeds array bounds (must not exceed 1).
It looks like you have misplaced a closing parentheses. If this is the line causing the issue set(SD(Link_Def(DeciNum,ii),'colo...

5 years ago | 0

Answered
Pairing row indices with multiple tables
Note that max has a calling syntax that returns the index of the max it finds. [M,I] = max(___) I would use the following code...

5 years ago | 0

Load more