Answered
Calculate median at every interval
Consider using either movmean or movmedian. The result will be the same when you are looking at pairs of numbers.

5 years ago | 0

Answered
Accessing the default apps: How do I find the default apps that comes with MATLAB?
Any apps you have access to will be in the Apps tab. You can see a list of all apps organzied by the toolbox they are in here. Y...

5 years ago | 0

Answered
Solve ODE equations with Simulink and Matlab function
If you haven't yet done so, go though Simulink Onramp. Chs 8-10 cover modeling dynamic systems in Simulink.

5 years ago | 0

Answered
How do I get more colours for scatter plot?
Modify the colororder of your plot. MATLAB uses 7 colors by default, meaning your 8th series reuses the first color, and so on. ...

5 years ago | 0

| accepted

Answered
How to read text block from live script?
To the best of my knowledge, this is not possible. One workaround may be to use an edit field in one of your code blocks.

5 years ago | 0

Answered
Input combination of string and number to a function which only accepts numbers?
MATLAB uses semicolons to construct arrays. A semicolon represents the end of a row. Anything following it is placed on the next...

5 years ago | 0

| accepted

Answered
mingw bin location win10
I found the following in an Answers post containg FAQs about installing mingw. You can get the location of your MinGW-w64 compi...

5 years ago | 1

Answered
Remove edges in pdegplot
There is no EdgeAlpha property to set. Consider capturing the graphics handle and using that to set the line color in your plot...

5 years ago | 1

| accepted

Answered
If and elseif loop
See Ch 13 of MATLAB Onramp to learn about if-else statements (they are not loops). Can you clarify what is or isn't happening t...

5 years ago | 0

Answered
How to add error bars to a timeseries plot using datetime values
Wouldn't your X be ts1.Time? See the Plot Datetime Values with Error Bars example for more. I have formatted errorbar to not dr...

5 years ago | 1

| accepted

Answered
hii there, I'am an electronics and communication ug engineering student , what are the product tools I should install for my academic use? for PCS,Control systems are the subj
I would start by installing the 10 products included in the student suite (click the 'View all products' botton on the MATLAB fo...

5 years ago | 0

Answered
GUI Hold on issue
See my answer here. Short answer, in an app, you need to specify the target axes, just like you do in the plot command. hold(h...

5 years ago | 0

Answered
Meaning of fifth and sixth lines? Why did we not consider 1 and 100th row? What does x(1,j) mean? Meaning of y(1,j) = x(2,j); elseif x(100,j) < epsilon, y(100,j) = x(99,j);?
It would appear i only goes from 2 to 99 because your code uses i-1 and i+1 to index x in line 8. If i could be 1 or 100, then t...

5 years ago | 0

| accepted

Answered
Delete points on UIAxis in App Designer
Try adding your pointHandle as a property of the app. That way, it will persist in the app structure. You would then use it usin...

5 years ago | 0

| accepted

Answered
how do I find where a function is defined (equivalent of "which" command in bash)
Yes, there is a which command in MATLAB. Note that count is an overloaded function, meaning it exists in several toolboxes. Here...

5 years ago | 3

| accepted

Answered
Run code with two sections - app designer
You need to keep in mind variable scope. All your callbacks are functions. Variables created inside a function are lost once the...

5 years ago | 0

| accepted

Answered
why can't Matlab find Fieldtrip?
Have you correctly added the necessary subdirecties to your MATLAB path according to these instructions? https://www.fieldtript...

5 years ago | 0

| accepted

Answered
Why do I receive Error writing in App designer ?
You have exceeded your storage limit in MATLAB Drive (you are using 654 MB but your license grants you 250 MB of space). You wil...

5 years ago | 0

| accepted

Answered
Trying to set Y-Axis to Minutes:Seconds for swim times. Would like to set range from 0 to 3:30 and eliminate leading zeros
Boxplot (and boxchart) do not yet support datetimes (see here), so you need to work with numeric values (like datenums), as you ...

5 years ago | 0

| accepted

Answered
How to get all edges of pdeModel
I don't know of a way to show which edge is between a set of vertices, but the faceEdges function will return you all the edge n...

5 years ago | 0

Answered
Fill table field based on field values from another table
I think you can actually join the two tables. I find the live task for joining tables the quickest way to get the correct settin...

5 years ago | 0

| accepted

Answered
Merge date row and time column to a single datetime row
You mention the mat file contains the data without the dates or times, correct? I think you can get to what you want fairly simp...

5 years ago | 0

Answered
Loop to perform calculation from table data and store each result
You are extracting arrays when you use curly braces. Use parentheses to keep the results in a table. See the Access Data in Tabl...

5 years ago | 0

| accepted

Answered
Display dates on x axis
Use the xticks function to set your x-tick locations.

5 years ago | 0

| accepted

Answered
Trying to set Y-Axis to Minutes:Seconds for swim times. Would like to set range from 0 to 3:30 and eliminate leading zeros
Your format spec is forcing two digits for the minutes ('MM:SS'). The way to eliminate a leading zero is to only use one 'M'. Ho...

5 years ago | 0

Answered
I'm getting an "Index in position 2 exceeds array bounds (must not exceed 1)" error but I can not figure out array issue in my code
The error is with Xo(:,2). You are trying to extract all values from the 2nd column, but Xo only has 1 column. Xo = [0.4; 0.2] ...

5 years ago | 0

| accepted

Answered
Title spacing problems with cell array
You will find the Create Title and Subtitle example helpful. A slightly different approach is shown below. condition_array = 'A...

5 years ago | 0

Answered
Save results on different sheets in excel
See the Write Table to Specific Sheet and Range in Spreadsheet example on the writetable documenation page.

5 years ago | 0

Answered
How to plot multiple plots in a for loop without overwriting them?
Your plotting code looks fine, and your plot has two lines on it, as shown by the legend. If it did not, you would get a warning...

5 years ago | 0

| accepted

Answered
pdegplot(model, 'FaceLabels', 'on') does not show face labels
It appears your values are too small for pdegplot to determine faces of your 3D model. If you use e-7 instead of e-9 the faces a...

5 years ago | 0

| accepted

Load more