Answered
In table, how to count a number of specific values by year?
The key may be in realizing that you have 2 grouping criteria - year and win_repeat. I added your data to a txt file so I could ...

5 years ago | 0

| accepted

Answered
Hello, I want to draw a 2D ghraph for R_{0} epidemic model.
Ch 6 (array calculations) and ch 9 (plotting) of MATLAB Onramp will show you how to do this. You might also find the examples a...

5 years ago | 0

Answered
Remove unwanted text/punctuation from table
Standardize your missing values to MATLAB default values, then use rmmissing to remove any row that contains a missing value. %...

5 years ago | 1

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 1), how to fix this error?
It means your variable m only has 1 column of data, and you are telling MATLAB to extract data using a column number >1. a = [1...

5 years ago | 0

Answered
how i save this code please tell me?? with .mat
You don't save code as a .mat file. Save it as .m or .mlx. See Save and Back Up Code for more. You can save variables in your ...

5 years ago | 0

Answered
Indexing string in loop
One way is to use strings instead of char arrays. datapath = "D:/DATA/test"; author_list = ["Peterson", "Jacobs"]; mask_list ...

5 years ago | 1

Answered
undefined function or variable feedof1 Matlab R2018b
It would appear MATLAB cannot find the function feeldof1. This is not a function native to MALTAB. It looks like it is part of t...

5 years ago | 0

Answered
general troubleshooting advice requested: preventing plot overwrites in loop.
I obtain erratic output when using 'plot' function in for...end loops. Some scripts work perfectly but others using identical sy...

5 years ago | 1

Answered
Index exceeds number of array elements (4).
The error is not coming from this function. You don't index anything. Somewhere else in your code you are trying to extract an e...

5 years ago | 0

Answered
Problem with my project
It would appear MATLAB cannot find the function doc2pdf. This is not a function native to MALTAB, so you will have to make sure ...

5 years ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1)
It means your variable ony has 1 row of data, and you are trying to index using a number >1. a = [1 2 3]; % works a(1,2) % d...

5 years ago | 0

Answered
Identifying same values of two arrays
Note that nan means not a number. When the rest of your data is chars or strings, nan actually gets convereted to <missing>. ar...

5 years ago | 0

| accepted

Answered
Saben como solucionar este problema???
Try using the Add-ons explorer to install add-ons. If that still doesn't work, consider running MATLAB as an administrator. To d...

5 years ago | 0

Answered
Questions in Matlab in general
You will have to at the least create variables containing the data you want to plot. Once they exist, one way to plot those vari...

5 years ago | 0

Answered
How can I change a daily temperature dataset to yearly group.
Consider using this example as a starting point. It summarizes the data into hours. You want to use 'yearly' instead using this ...

5 years ago | 0

Answered
I am finding the following error while running this code in MATLAB R2021a. Please help.
https://www.mathworks.com/help/matlab/ref/randi.html It looks like MATLAB has determined you are trying to use this syntax: X ...

5 years ago | 0

Answered
In matlab check how many times 2 displayed in given matrix A=[14 2 4 2 6 7 8 2 4 5 9 2 3 2 45 2] hint: sum()?
Hint: logical indexing. Ch 12 of MATLAB Onramp.

5 years ago | 1

Answered
Including interpolation row by row in a matrix using a for loop
You will likely find this example helpful. Just make your X values a column vector. You should transpose your Y values so each r...

5 years ago | 0

Answered
?How do i get data from a table to use for further calculations
See this page: https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html

5 years ago | 0

| accepted

Answered
How to delete the dotted plot on top of the Image in UIAxes
Your current code is drawing a dot at every interger increment in X and Y. That along with your plotting syntax is creating a re...

5 years ago | 0

| accepted

Answered
convert hours to days on y-axis
If you convert your data to datetime, then you can set the y axis format to be any valid date format. data = [1 0 2 0 3 0 4 ...

5 years ago | 1

Answered
Hi, I have been getting this error 'index in position 2 exceeds array bounds (must not exceed 5)'
This error means you are trying to extract a value from a column of your matrix that does not exist. In this case, your matrix o...

5 years ago | 0

Answered
Where are MPC toolbox examples?
If you expand the details of the video you linked to, you will see a link for downloading the model. Learn how to design an MPC...

5 years ago | 0

Answered
How to combine stacked bar chart and line chart?
I reached out internally. This is the expected behavior, but it's also fairly simple to change this back to what you would have ...

5 years ago | 0

Answered
Using AppDesigner with Matlab R2019a?
Yes it is possible. You can get started here. You might also take a look at some of the examples.

5 years ago | 0

Answered
Can I display a country's flag by taking the name of that country from the user in GUI in appdesigner?
If you can find a source of images on a RESTful server, you might be able to use webread. See this example.

5 years ago | 0

Answered
SOLVED - Slip a single array in three unequal parts, three years observation with a leap year in between
I would look into timetables and groupsummary. With a timetable, you can add a date and time to each row, and then with groupsum...

5 years ago | 0

| accepted

Answered
need to plot multiple column array pairs in a matrix against each other
Your for loop is not written correctly. The 'end' before your plotting code means the inner loop will run incrementing i but not...

5 years ago | 0

Answered
5G waveform generator app from the 5G toolbox matlab script export option does not work
The error message is pretty clear - it is not yet possible to export a script for this waveform type in the current app version....

5 years ago | 0

Answered
Error using datetime - Input data must be one numeric matrix when converting from a different date/time representation.
Typically you would use the 'ConvertFrom' name-value pair. t = datetime(X,'ConvertFrom',dateType) Select the appropriate datat...

5 years ago | 1

| accepted

Load more