Answered
Is there a way to control the length of t in the output of ode45?
Yes. Instead of using a time span, use a time vector. The equation will still be solved the same way (variable time step), but t...

5 years ago | 2

| accepted

Answered
how do i use contour command for rectangular plate ?
Include your x and y vectors when plotting. You'll have to do some manipulation of y since you create it starting at 2 and decre...

5 years ago | 0

| accepted

Answered
Combine date and time
The best way to combine data types (datetime and numeric) is to use a table. There are several possible approaches. Here is one....

5 years ago | 0

| accepted

Answered
How to install toolboxes in cloud mobile MATLAB?
You will have access to whatever toolboxes are on your license. If you do not have a license, you will only be able to use base ...

5 years ago | 0

Answered
discontinuous stairs graph plot
I think the trick here is to realize that MATLAB will treat each column as a separate data series, so orgainze each step (start ...

5 years ago | 0

| accepted

Answered
Error in Principal Component Analysis (PCA) matlab
You are getting this error because you have overwritten MATLAB's pca function with your pca.m file. Rename your file, and your c...

5 years ago | 0

| accepted

Answered
vertical lines of 'mean' and 'std' in a 'ksdensity' plot?
Use xline. % create a distribution with known mean, std pd = makedist('Normal','mu',2.5,'sigma',3.1); x = random(pd,100,1); ...

5 years ago | 0

| accepted

Answered
Custom Add-on setup
If you create a toolbox (*.mltbx), it will appear in the Add-Ons Explorer once installed. If you want users to be able to down...

5 years ago | 0

Answered
Matlab online session not starting .
When you have issues with your session, try deleting it and then sign in again. You can find the instructions here.

5 years ago | 1

| accepted

Answered
vectors are not same for ploting
Make moving_avg a 57x429 array, or make fatality_per a 57x429 array. It appears you have more columns of data in dailycases th...

5 years ago | 0

| accepted

Answered
How to draw multiple constant lines?
Could you provide more details about what you mean by 'it didn't work'? xline([1,2,3]); xlim([0 5])

5 years ago | 0

| accepted

Answered
ODE45: Check for missing argument or incorrect argument | Error in odearguments (line 90) & ode45 (line 115)
If I remove the class structure and just run this as a script, I get a different error. Perhaps investigating this one will fix ...

5 years ago | 0

| accepted

Answered
Error using plot Vectors must be the same length.
The error message is telling you what the problem is - you are trying to plot using a different number of x and y points. In thi...

5 years ago | 0

Answered
How Can I plot Streamlines for the following code. You can reduce the time steps to save your time. Thanks!
To use streamlines, you need a grid of x and y vertices, a grid of u and v vector components, and 'seed' x and y values for wher...

5 years ago | 1

| accepted

Answered
What does this line of code do?
You have a data type mismatch. You are passing in a variable (Actual) that is categorical, while the function you are using expe...

5 years ago | 0

| accepted

Answered
Is there any option to run a polyfit on a scatter plot?
Polyfit is not going to return the X and Y values of those 6 points. It's going to return the polynomial coefficients for the eq...

5 years ago | 0

Answered
Remove Matlab drive from file explorer
Did you install MATLAB Drive Connector? If so, it adds this folder on your computer, which syncs with your MATLAB Drive Online c...

5 years ago | 0

| accepted

Answered
Patch won't fill my polygon and inpolygon won't find points inside
For question 2, it doesn't work for a couple reasons. xdim(31:length(zdim)-1) must be the same length as zdim. They are not, so...

5 years ago | 0

| accepted

Answered
How can I generate a "histogram", which shows the relative frequencies depending on the angle as "vectors" in polar coordinates?
This sounds like you want to use polarhistogram.

5 years ago | 0

| accepted

Answered
I cant solve 13.2 problem in Matlab Onramp
Use the Hint and See Solution links to learn how to complete any of the graded tasks.

5 years ago | 0

| accepted

Answered
Index exceeds the number of array elements (1).
It looks like Ch 5 of MATLAB Onramp would be helpful for you. It is unclear to me what you are tryign to do. The issue is you a...

5 years ago | 0

| accepted

Answered
Matlab contour plot with color
Use contourf.

5 years ago | 0

Answered
Unrecognized function or variable 'featureInputLayer'.
This function was introduced in R2020b. You can see what release a function was introduced in at the bottom of the documentation...

5 years ago | 0

| accepted

Answered
Realize a 3d line plot
You must be getting an error message. What does it say (all the red text)? Check that your inputs are what plot3 expects. plot...

5 years ago | 0

| accepted

Answered
MATLAB Online not working
Some things to try: A different browser Clear your cache If it still doesn't work, follow these instructions to reset your se...

5 years ago | 1

| accepted

Answered
How to automically read data from excel file
I suggest using readtable to import a spreadsheet. See here. As for what to do with the data once you've imported it, I suggest...

5 years ago | 0

| accepted

Answered
MATLAB training unstable on Safari 14.1 (macOS 11.3.1)
https://www.mathworks.com/support/requirements/browser-requirements.html

5 years ago | 0

Answered
error: undefinded function
You need to keep in mind what workspace your variables are in. See the Base and Function Workspace page. You define variable a ...

5 years ago | 0

Answered
Need help converting berkeley madonna code to matlab code
Here's equivalent MATLAB code. STARTTIME = 0; STOPTIME = 24; % initial values NF = 0; F = 0; B = 0; L = 0; y0 = [NF; F...

5 years ago | 1

Answered
UITable doesn't work on Standalone Desktop App but on AppDesigner
Consider creating a runtime log of your compiled app. See this answer for more detais. Recompile the app, run it, and click your...

5 years ago | 0

| accepted

Load more