Answered
want to change data
varname1 = categorical(["2022/02/01";"2022/02/01"]) varname12 = datetime(string(varname1),'InputFormat','yyyy/MM/dd')

4 years ago | 0

| accepted

Answered
Subscripting into a table using one subscript (as in t(i)) is not supported. Specify a row subscript and a variable subscript, as in t(rows,vars). To select variables, use t(:
When indexing a table, you need to specify row and variable (e.g. tblNm(row,'varNm')) or variable(row) (e.g. tblNm.varNm(row)). ...

4 years ago | 2

Answered
Variable unrecognized in function
It would appear, based on the error message, that your function does not create a varibale Nu. Make sure you are either passing ...

4 years ago | 0

Answered
how to solve this 'error unable to define local function ALO' ?
Local functions can only be accessed within the script they are defined in. You cannot call it from the command window, as your ...

4 years ago | 0

Answered
Readtable: Invalid parameters name
I believe the error is because these options are not valid when you specify 'Format'. The section of code in readtable that gen...

4 years ago | 0

Answered
Replace values to create an image with binary values (0,1)
Sounds like a logical result would work. a = [-3.8 -1 0 1 3.8]; c = a~=1

4 years ago | 0

Answered
how to find value in a matrix from column and row name
If you are using a table, see this page. You could do something like this % create a sample table load patients T = table(Age...

4 years ago | 0

Answered
Problem in app.UITable
The error would suggest you either don't have a UITable in your app, or if you do, the name is not UITable. Check your component...

4 years ago | 0

| accepted

Answered
rounded time value with intervals
I think in this case, it's easiest to round the seconds to the closest 15-minute increment. This uses 24-hr time, so no AM/PM is...

4 years ago | 0

Answered
how to plot Correlation matrix between several variable with circle?
There is no single function for creating this plot, so you would have to build it up using bits and pieces from several function...

4 years ago | 0

Answered
Delay automatic unfolding in App Designer due to syntax errors in function definition
This sounds like feedback worth submitting to MathWorks. If you agree, you can submit it here.

4 years ago | 0

| accepted

Answered
Storing Variables from Separate Files in the Workspace of a Single .m file
Use the save command. This will not save them to your m file, but to a separate *.mat file. You can then copy that mat file to a...

4 years ago | 0

| accepted

Answered
How to index a column of data
Consider using a combination of the following syntaxes M = min(A,[],dim) [M,I] = min(___) You can get the result without usin...

4 years ago | 0

| accepted

Answered
What Should Happen when a Live Script is Executed from the Command Line?
It should run your script. Any lines of code without a semicolon will print their output to the command window, and any figures ...

4 years ago | 0

| accepted

Answered
Color scatter plot points based on value in another array
Use the following syntax for scatter3 scatter3(X,Y,Z,S,C) Your input C can be a vector the same length as your x,y,z data. See...

4 years ago | 1

| accepted

Answered
How to have an event when the mouse enters a particular area/polygon in Guide?
See the demo towards the bottom of this page.

4 years ago | 0

Answered
MATLAB App Listbox items not changing
Where have you placed the code in your app? It appears to be in your listbox ValueChanged callback. That means this function wil...

4 years ago | 0

Answered
How I can use matlab for regression and classification?
I would use cvpartition

4 years ago | 0

Answered
how can I solve this exceeding matrix index? and what is wrong in my ode23s solver?
The error means you are indexing using a value greater than the size of the vector. It is coming from this line Txz(kkf)=alphaf...

4 years ago | 0

Answered
Finding the location of Maximum value in an array?
I do not follow what you are trying to do, but below is an explanation of what your code is doing. A = [1 2 9 4 5 6 7]; % Fi...

4 years ago | 0

| accepted

Answered
Swapped row and column output from ind2sub function?
The issue here is that the inputs to text are x and y. You are using r and c, probably to indicate row and column. Just note tha...

4 years ago | 1

| accepted

Answered
How to set the frequency range of a nyquist plot?
You should be able to set the freqeuncy range using the following syntax: h = nyquistplot(___,w) plots Nyquist diagram for freq...

4 years ago | 0

Answered
What is happening when I input numbers into a fit?
The output of fit is a fit object. See a description here. As an example from that same page: load census; f=fit(cdate,pop,'p...

4 years ago | 0

| accepted

Answered
getappdata / setappdata does not work for me?
I thnk the better way is to pass the figure object into your function as an input parameter. I think your issue is due to you se...

4 years ago | 0

Answered
Not able to access circuit simulation onramp
See this answer: https://www.mathworks.com/matlabcentral/answers/1646610-launching-mathworks-onramp-courses Currently, to see ...

4 years ago | 0

Answered
Got a problem when saving the variables
Try using parentheses instead of curly braces. All_Horas(q) = Horas;

4 years ago | 0

| accepted

Answered
changing color for each bar plot
See the Control Individual Bar Color example on the bar documentation page.

4 years ago | 0

| accepted

Answered
For loop for checking through categorical
One observation is that your if statement conditional does not index a particular variable. Tell it which variable to look for "...

4 years ago | 0

| accepted

Answered
How can I calculate the distance between two points? [Haversine]
The Haversine formula is fairly straight forward to code up yourself (see here)

4 years ago | 0

| accepted

Answered
Convert array into music
You can play sounds in MATLAB, but the way I know to do something like what your asking requires a little work. You need to defi...

4 years ago | 0

| accepted

Load more