Answered
Need help in changing function from python to matlab
https://www.mathworks.com/videos/functions-and-subfunctions-97413.html

6 years ago | 0

Answered
How do I plot table with subplot?
I recommend going through MATLAB Onramp. Chapter 9 covers plotting, but it sounds like some of the other chapters would be helpf...

6 years ago | 0

Answered
Time vector to generate a sinusoid signal with 0.5 seconds duration , Fs =200
When using linspace, don't forget to account for 0. For example, how many numbers are there between 0 and 10? 11. You should a...

6 years ago | 0

| accepted

Answered
matlab syntax error "for" cannot run as it appears
The issue here is you have named your script 'for.m' but for is a reserved word indicating the start of a for loop. Give your s...

6 years ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 8)
The issue I see is that you are assuming A is square (8x8), but it is not. It has dimensions 9x8. However, you are only using th...

6 years ago | 0

Answered
plotting a symbolic function
Sounds like a homework assignment, so I won't provide an answer, but take a look at the fplot function documentation page. One o...

6 years ago | 0

Answered
Error "too many inout arguments" using "diary"
Because there are spaces in your path, you need to enclose your file path+name in quotes. diary 'C:\Analise de Regressao\EXUnid...

6 years ago | 0

Answered
ECG data heart rate
Here's an example from the documentation of how to get data from physionet. Here's another example of getting the data directly ...

6 years ago | 0

| accepted

Answered
how to run "ray tracing in conference room"example?
I assume you are referring to the ray tracing example shown on this page. If you scroll to the very bottom of the page, you will...

6 years ago | 0

Answered
convert epoch time to yyyyMMDDHHMMSS
Just as an example, here is one way to read it in. opts = detectImportOptions("HPP2.xlsx"); % Keep variable names as they are ...

6 years ago | 0

Answered
How do select values in one table which match those in another...
If you are unfamiliar with joining tables, I suggest using the Join Tables task in the live editor. This allows you to interacti...

6 years ago | 0

Answered
How can I Identify the P,Q,R,S and T waves in all 12 leads of ECG
If you would like an interactive way to try to detect peaks, I suggest using the Find Local Extrema task in the live editor. It ...

6 years ago | 0

Answered
convert epoch time to yyyyMMDDHHMMSS
Use datetime with the 'epochtime' specified. % Example: Return the number of days since January 1, 2000. T = datetime(X,'Conve...

6 years ago | 1

Answered
How to share on Matlab Online
It looks like you are trying to share the 'Published' folder, which is not possible. Rt click on your 'Examples' folder, and you...

6 years ago | 0

| accepted

Answered
Error using load unable to read
I observed the same behavior in MATLAB Online. Try the following: load("/MATLAB Drive/Parameters/3_parameter.mat") or load("....

6 years ago | 0

Answered
How do I use fill to create continuous error bars?
Having your functino may not technically be necessary, but it sure makes it easier to ensure we are seeing what you see. In this...

6 years ago | 1

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values?
What is the size of img? What is the value of sr in line 12? summation = summation + img(sr,z); The error would suggest a prob...

6 years ago | 0

Answered
About Table Comparing in matlab code
I would use the discretize function, using your comp data to set the edges (col 1) as well as the new values (col 2). Here's so...

6 years ago | 1

| accepted

Answered
Random fitting when use fittype function in Toolboxes
They are absolutely related. It is the randomly selected start point that is leading to you getting different results each time....

6 years ago | 0

| accepted

Answered
My MATLAB loop is not ending
Either your 'if' condition at the end of your while loop is always true, or your 'elseif' condition is never true. I would try t...

6 years ago | 1

| accepted

Answered
Exercise in "Data Processing and Visualization" not working?
Thanks for pointing this out. I've shared it internally. You can use the "See Solution" link to see what settings were expected....

6 years ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
I think the error message is clear on what the issue is. It appears your variable vi has a size of mx1. You are trying to index ...

6 years ago | 0

Answered
Im attempting to graph the union and intersection of this specific fuzzy set. But I am getting an error.
The error I get when running your code is that the vectors you plot have to be the same length. x is 901x1 while QuC and QnC are...

6 years ago | 0

| accepted

Answered
Steepest descent method n shows error 'Index exceeds matrix dimensions.', how to fix this
The error means that somewhere in your code you are trying to access an element that doesn't exist. For example, if a variable h...

6 years ago | 0

Answered
Problem with subplots in a for loop
It doesn't look like you are using subplot correctly. The most current way to do this is using tiledlayout. There is a good exam...

6 years ago | 0

Answered
How to plot a ground surface in 3D using meshgrid?
This is one way. You can use meshgrid to turn vectors into matrices with values repeated in rows and/or columns. However, only Z...

6 years ago | 0

Answered
Integration of MATLAB Grader with App Designer
At this time, it is not possible to integrate MATLAB Grader into app designer. The LMS integration is achieved using LTI, a stan...

6 years ago | 1

| accepted

Answered
Undefined function or variable
The question should be do the variables exist in the workspace at the time you want to use them? Having them defined in a separa...

6 years ago | 0

Answered
Cannot get these errors to clear.
Your equations for CA, CB, CC in ODEs_CA3 function use a variable Cto that has not been created or at least does not exist withi...

6 years ago | 0

Answered
Convert a map in shapefile into occupancy map
Thank you for sharing your shapefile. The first thing to realize is that your shapefile's X and Y data contains data for 9 polyg...

6 years ago | 1

| accepted

Load more