Answered
How to separate a vector into bins and average each bin
I don't exactly follow how you get from A to B, and I'm fairly certain there isn't a single function that will get you what you ...

4 years ago | 0

| accepted

Answered
Legend for dashed line
I suspect the issue is that you are missing a 'hold off' and have run your code multiple times. At least I could duplicate by ru...

4 years ago | 0

Answered
How to ensure that MATLAB reads the first column as a column in a table?
You are using 'RowNames', which are not considered a table column. You therefore either need to use rownames everywhere (origina...

4 years ago | 0

| accepted

Answered
Help plotting specific points
plot the data as you normally would (see Ch 9 of MATLAB Onramp if you need help with that). I'd recommend scatter. Then to modif...

4 years ago | 1

Answered
Problem with output of fprintf command
Look at the examples for fprintf in the documentation. You need to include a format specification to include variable values. x...

4 years ago | 1

| accepted

Answered
How to fix index in position 2 exceeds array bounds (must not exceed 1920)
The error message indicates that you are trying to index your variable using a value that exceeds the size of the array. Here, p...

4 years ago | 0

Answered
Counting the number of values using hiscounts with 2 arrays
It is unclear to me exactly what you are trying to do, and why you need to have A to know the bincounts of B. All you need is th...

4 years ago | 0

| accepted

Answered
Plot average monthly flow from Jan-Dec for 'x' number of yrs on one plot using the provided data
Group by year and monthofyear. Then you can use ismember and reshape to identify and organize the data in a manner that will all...

4 years ago | 1

| accepted

Answered
How to change repeat dates that occur right after each other
Perhaps not the most straightforward way, but this appears to work for me on your processed Nightly_Prompt.xlsx data. Basically,...

4 years ago | 0

| accepted

Answered
AppDesigner axes, component creation error
Perhaps this answer is helpful https://www.mathworks.com/matlabcentral/answers/416995-display-video-stream-in-app-designer

4 years ago | 0

Answered
Plotting log functions in App designer
It looks like you tried to replace the for loop with an elementwise multiplication. However, your syntax for rangevar is only re...

4 years ago | 0

| accepted

Answered
How do I plot multiple fields in one graph, which are stored in a 1x1 structure?
Continue using the dot notation to access each field of your structure. I think something like this should work: x = Erodierver...

4 years ago | 0

| accepted

Answered
Three plots with tiledlayout
One way to do this is to use the following syntax: nexttile(tilelocation,span) Below, I create a 2x4 grid instead of 2x2. Then ...

4 years ago | 2

| accepted

Answered
How can I plot a curve while changing color every N points ?
You would have to have a separate plot call for each line segment. Maybe something like this? N = 10; C=parula(N); % returns 2...

4 years ago | 0

Answered
Necessary Tools coming with MATLAP
You won't need every toolbox, but it's also hard for us to say which ones you will need. Is there another PhD student in your pr...

4 years ago | 0

Answered
Read string and numeric array in CSV file
If you save your file as a 'xlsx' file, you could take advantage of the 'Range' option in readtable. Without it, you may have t...

4 years ago | 0

Answered
Using to the 'fill' function to plot a filled polygon that are confidence intervals
Your code looks fine. Check what your values of CIlow and CIhigh are. x = logspace(0,140,16); %x-axis data, 1 x 16 double y = ...

4 years ago | 0

| accepted

Answered
How to plot two graphs in one subplot?
The same way you would add 2 lines to a plot that is not create using subplot - by either using hold or the following plot synta...

4 years ago | 0

| accepted

Answered
How to plot user entered data set in app design
The values of a uitable are accessed via the Data property. See here. data = app.UITable.Data plot(app.UIAxes,data(:,1),data(:...

4 years ago | 0

Answered
Using trial license ,SIMULINK ONRAM , Project automotive performance ,task 3 ,after submit, it is not responding, What is the problem?
Please report this directly to support. You should be able to complete the entire onramp on a trial license.

4 years ago | 0

Answered
How to use grpstats with more than four columns?
I think your syntax is incorrect. If the first variable is your grouping variable, and you want the std of the other variables, ...

4 years ago | 0

| accepted

Answered
webcam preview in app designer axes ?
See this answer https://www.mathworks.com/matlabcentral/answers/416995-display-video-stream-in-app-designer

4 years ago | 0

| accepted

Answered
How to draw a bar chart with a color gradient with matlab?
You might find this site helpful. Here's a quick example. Note that I have to use bar3 since bar does not have an 'interp' opti...

4 years ago | 0

Answered
How to programatically select nodes of an uitree in AppDesigner?
You can use app.Tree.SelectedNodes I found this example helpful. There will need to be some modifications to get it to work in...

4 years ago | 1

Answered
are script based unit test supported by matlab 2017a?
The functions associated with script-based unit tests were introduced by R2016a. So yes, script-based unit tests are supported i...

4 years ago | 0

| accepted

Answered
Find averages given conditions
When loading the original data into MATLAB, I would specify that "_" is a delimiter. This will cause the first column to be read...

4 years ago | 0

Answered
Create mfile for a loop function
Yes, it's possible. See this page on creating live functions in a live script using the Refactor tool. The orginal and refactor...

4 years ago | 0

Answered
How do I regulate datetime x-axis when using subplots?
Thank you. Does your timedata correspond to your ticklabels? Why not use xtickformat('MMM') instead of manually specifying the...

4 years ago | 0

| accepted

Answered
Importing file in App designer of MATLAB and use the file afterwards
Use app properties to share data within your app. See this page: https://www.mathworks.com/help/matlab/creating_guis/share-data...

4 years ago | 0

| accepted

Answered
Datatype duration midnight roll over
There is no concept of days with a duration variable, so there are 2 options that I could think of. Add 86400 seconds to any ne...

4 years ago | 0

| accepted

Load more