Answered
Trying to complete a boxplot for the Z values of a matrix
MATLAB will treat each column as a separate data series. A = rand(10,5); boxchart(A) If you want to only have a single boxpl...

4 years ago | 0

| accepted

Answered
Dorp Down Menu in App Designer doesn't accept values
I see the same behavior. However, I could use the button with the vertical 3 dots to the right of the Value and Items fields to ...

4 years ago | 0

| accepted

Answered
What is the best reference to learn machine learning?
Where you are not a developer, I think you will find many of the interactive tools MathWorks has developed for Machine Learning ...

4 years ago | 1

| accepted

Answered
Repeating for loop N times
Sounds like you need to put all your code inside a 2nd for loop

4 years ago | 0

Answered
how can i mark the maximum of my plot and have extent and time for it?
Look into the max function, particularly this syntax.\ [M,I] = max(___)

4 years ago | 0

Answered
Fitting Curve with scattered dots
There are a couple issues to fix. The error you are currently getting is because zaxe and dxPixel are scalars. In order to use ...

4 years ago | 0

| accepted

Answered
Error using Table with New Installation of 2022a
I was able to run your code in R2022a without error. It can also be run in R2022a on this platform (note the 'Ran in R2022a' st...

4 years ago | 0

Answered
How to check plot-properties for multiple lines in one plot - Grader
Any figures created by the reference solution are closed and their objects deleted before the learner solution is executed. The ...

4 years ago | 0

| accepted

Answered
How do I Transfer license from Colleague in USA to India
Contact support

4 years ago | 0

Answered
Simscape missing in Simulink Library
Simscape and Simscape Electrical are separate products that must be installed in order to use them. If your license gives you a...

4 years ago | 0

Answered
??? Undefined function or variable 'excelsheet'.
See this example.

4 years ago | 0

Answered
Event in ode45 doesn't work
You've pasted your code all out of order, but once I ordered it correctly, it runs as expected. EDIT: I did change the first li...

4 years ago | 0

Answered
Overlapping line plots in one graph for numerous cycles
There are likely many different ways to do this. My first instinct is to use findgroups and splitapply. rawdata = readtable('Ne...

4 years ago | 1

| accepted

Answered
Why do I receive Error loading .mlapp?
Try looking in your MATLAB Drive deleted files folder (https://drive.matlab.com/trash/). If there is a backup file there, restor...

4 years ago | 0

| accepted

Answered
I keep getting this error, "Not enough input arguments" for my fit function. How to resolve this?
You may need to share your data. When I run your code with some made up data, I do not get an error. Please share the complete ...

4 years ago | 1

Answered
Wanting to + inside an if statement once a variable reaches 1, not sure how to do it?
The reason is that r is a vector. The conditional statement of an if statement is not elementwise, meaning that it only executes...

4 years ago | 0

Answered
Plotting four positive quadrants
What is plotted vs what is used as a label can be different. I suggest plotting the negative of KPI(2) and Parameter2, but label...

4 years ago | 0

| accepted

Answered
Not enough input arguments in addon function for arduino UNO.
I can't test, but I suspect you need to you the following syntax shield = addon(a,'Adafruit\MotorshieldV2',Name,Value) So the ...

4 years ago | 0

Answered
I am writing a code that allows a user to enter their name, and then check if the name starts with A,B or C and do someting. I am getting an error, please check my code below
Use the optional 2nd input to input to indicate the input is a string. txt = input(prompt,"s") name = input('enter your name :...

4 years ago | 0

Answered
In a table I have a column made of strings which are often repeated (sort of categories), I would like to substitute them with numbers which represents the categories
I would first consider keeping it a categorical. You have not explained why you need it to be a numeric value. However, if you n...

4 years ago | 0

| accepted

Answered
Split the data into 70% training and 30% test in classification learner?
What version of MATLAB are you using? In R2022a, there is an option to set aside a percentage of the data to use as test data. ...

4 years ago | 1

| accepted

Answered
why do I get error for Undefining function sdpvar and how can I solve it?
You have not installed YALMIP Toolbox. Once you do, you will have access to sdpvar. This is not a MathWorks supplied toolbox, s...

4 years ago | 0

Answered
App Error 'value' must be double scalar within the range of 'limits' Can't really find a way to fix
Another option is to call the other callback functions at the start of the Calculate callback to ensure app.MOD and app.EDMG hav...

4 years ago | 0

Answered
How to remove horizontal spacing between subplots?
Consider using tiledlayout instead of subplot. You can then use the TileSpacing input to adjust the spacing. t = tiledlayout(2,...

4 years ago | 0

| accepted

Answered
How create moving plot in MATLAB grader (in moodle)
You cannot create an animation in MATLAB Grader. At least not one that you will be able to see. This is because your code actual...

4 years ago | 0

| accepted

Answered
find out dependent variables from an expression
syms x y=x^2+2; symvar(y)

4 years ago | 0

Answered
How to fix the following error while writing matlab code for definite integral
It would appear the first input to int is not a symbolic expression. See here. Look at these examples for how to use int.

4 years ago | 0

Answered
Unable to update MATLAB 2016b to 'update 7'
Based on the message, it appears you need to contact support. You can do so here: https://www.mathworks.com/support/contact_us....

4 years ago | 0

Answered
How to find specific text in a string?
I'm sure there is a regexp way to do this, but I find it easier to use pattern with its supporting functions. Here's how I would...

4 years ago | 0

| accepted

Answered
Error using plot Vectors must be the same length. ı have a plot error .İs there any advicethis problem
There are not enough details to say why your vectors are not the same length, but your X and Y vectors are not the same length i...

4 years ago | 0

Load more