Answered

Unauthorized Linked problems in MATLAB Grader activity on LMS Moodle

Your LMS knows what problem to load based on the LTI key and the resource_link_id the platform assigns to the LTI problem. When ...

Unauthorized Linked problems in MATLAB Grader activity on LMS Moodle

Your LMS knows what problem to load based on the LTI key and the resource_link_id the platform assigns to the LTI problem. When ...

21 hours ago | 1

| accepted

Answered

How can I divide the colorbar into just two ranges?

The number of colors is controled by your colormap. However, MATLAB spreads the colormap evenly over the range of data plotted. ...

How can I divide the colorbar into just two ranges?

The number of colors is controled by your colormap. However, MATLAB spreads the colormap evenly over the range of data plotted. ...

1 day ago | 0

Answered

Migration from GUDE to App Designer

@G A provided this answer in a comment above: https://uk.mathworks.com/matlabcentral/answers/479426-migrated-guide-to-app-desig...

Migration from GUDE to App Designer

@G A provided this answer in a comment above: https://uk.mathworks.com/matlabcentral/answers/479426-migrated-guide-to-app-desig...

2 days ago | 0

Answered

Accessing a full PDF of tasks and answers of ONRAMP

While MATLAB Onramp does have course files you can download, it does not contain exactly what you are asking for. It consists of...

Accessing a full PDF of tasks and answers of ONRAMP

While MATLAB Onramp does have course files you can download, it does not contain exactly what you are asking for. It consists of...

2 days ago | 1

| accepted

Answered

How to fix the waterfall plot curtain along the y-axis bug?

There appears to be an issue when plotting using very small step sizes in X. If you create the waterfall plot without specifying...

How to fix the waterfall plot curtain along the y-axis bug?

There appears to be an issue when plotting using very small step sizes in X. If you create the waterfall plot without specifying...

2 days ago | 0

Answered

Could someone please explain what is wrong in my function?

You have not defined r and c. You have three options that I see. Pass in the single value to your function: Sign = signum (B...

Could someone please explain what is wrong in my function?

You have not defined r and c. You have three options that I see. Pass in the single value to your function: Sign = signum (B...

3 days ago | 1

| accepted

Answered

Check if string contains a set of numbers

It would be helpful to have more data to test with, but my approach would probably be to convert the cell of names to a string a...

Check if string contains a set of numbers

It would be helpful to have more data to test with, but my approach would probably be to convert the cell of names to a string a...

3 days ago | 1

| accepted

Answered

exit from a nested while loop after having set its index to a given value

We don't have enough data to run your example. However, the error message has to do with how you are indexing height. It would a...

exit from a nested while loop after having set its index to a given value

We don't have enough data to run your example. However, the error message has to do with how you are indexing height. It would a...

4 days ago | 1

| accepted

Answered

Error when combine tables vertically under some circumstances

I've edited your post to run your data and display the underlying issue. You use char arrays to create posture. To combine char...

Error when combine tables vertically under some circumstances

I've edited your post to run your data and display the underlying issue. You use char arrays to create posture. To combine char...

4 days ago | 1

| accepted

Answered

How to plot coupling functions?

If I don't use fplot, I do get a more descriptive error message. Based on the code you have shared, you are using your function ...

How to plot coupling functions?

If I don't use fplot, I do get a more descriptive error message. Based on the code you have shared, you are using your function ...

4 days ago | 0

Answered

How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?

Uitables do not have an append mode. When you specify data, you either need to specify the specific row, or reload all the data....

How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?

Uitables do not have an append mode. When you specify data, you either need to specify the specific row, or reload all the data....

8 days ago | 0

| accepted

Answered

dynamic title in app.UIAxes won't work

Your function is working, but it is returning a 1x3 cell array. Title does not accept a cell array of cells. When building your...

dynamic title in app.UIAxes won't work

Your function is working, but it is returning a 1x3 cell array. Title does not accept a cell array of cells. When building your...

10 days ago | 1

| accepted

Answered

Import .csv with missing delimiters and values

Perhaps you have not shared enough data for us to understand the problem. When asking a question about MATLAB, it's usually help...

Import .csv with missing delimiters and values

Perhaps you have not shared enough data for us to understand the problem. When asking a question about MATLAB, it's usually help...

10 days ago | 1

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...

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...

10 days ago | 1

| 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...

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...

11 days 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....

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....

11 days 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 ...

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 ...

11 days 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 ...

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 ...

11 days 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...

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...

12 days 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); ...

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); ...

12 days 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...

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...

12 days 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.

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.

13 days ago | 0

| 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...

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...

14 days 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])

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])

14 days 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 ...

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 ...

14 days 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...

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...

14 days 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...

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...

14 days 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...

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...

14 days 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...

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...

14 days 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...

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...

15 days ago | 0

| accepted