已回答
el codigo en el que estoy trabajando debe leer datos en tiempo real de arduino
See this example from the documentation for serialport: s = serialport("COM3",9600,"Timeout",5); data = read(s,16,"uint32"); ...

1 year 前 | 0

已回答
How to use Machine Learning Algorithms in classification for categorical problem?
Based on your replies to my comments, this does not seem like a machine learning classification problem to me. It seems like a p...

1 year 前 | 0

已回答
Grouping the data of two variables by sum
R = [1; 3; 4; 1; 1; 3]; Z = [3; 2; 1; 3; 2; 2]; E = [0.5; 0.4; 0.3; 0.1; 0.5; 0.4]; tbl = table(R,Z,E) groupsummary(tbl,...

1 year 前 | 0

| 已接受

已回答
How to fill in o marker with color
Set the MarkerFaceColor property: clc; clear; close all; % Curve Fit - Left of Target x = [1500 1600 1750 1930 2250]; ...

1 year 前 | 0

已回答
does kruskal-wallis test on matlab take into account when a sample has a large number of ties or is their a specific function to use in such a situation?
Looking inside the code for anova1 (which is called by kruskalwallis), I see that it uses a formula that is adjusted for ties. I...

1 year 前 | 0

| 已接受

已回答
How to estimate Y using a linear regression and an uncertain X value.
This is not exactly what you have asked for, but you could also look into doing the first regression using an errors-in-variable...

1 year 前 | 0

已回答
Copy a file to a parent folder
copyfile filename ..

1 year 前 | 0

已回答
for loop keeps putting out error
Don't use the keyword size as a variable name. I changed it in the code below: % Define the dimensions of the garden area (in s...

1 year 前 | 0

已回答
Dealing with NaNs in corr function (upper/lower triangles of matrices with same dimension)
The documentation page for the corr function describes how to use the "Row" name-value parameter to decide how to deal with miss...

1 year 前 | 0

| 已接受

已回答
New to matlab, trying to understand basic functions still
Assuming that D0a is a matrix, then x is the 1st column of that matrix. (x is a column vector.) nf is the number of elements i...

1 year 前 | 0

已回答
How to label names in bar graph?
Can you upload the data, so that we can run your code? You can use the paper clip icon in the INSERT section of the toolbar. Wh...

1 year 前 | 0

已回答
How to apply RNN for regression?.
There is a nice introduction to using RNNs in MATLAB documented here.

1 year 前 | 0

| 已接受

已回答
Matlab freezes. I am using mac Apple M2 Max. OSX sonoma
This is a known bug with R2023b (and also older releases) on Sonoma, officially acknowledged by the MathWorks Support Team. See ...

1 year 前 | 0

| 已接受

已回答
Error using indexing Too many output arguments.
I'm guessing that in the expression (b1.*B.n3') you intended (b1.*B.*n3') The specific error is because the syntax you used ...

1 year 前 | 0

已回答
Documentation about centralized Learning for Multi Agent Reinforcement Learning
References for MATLAB functions are typically in two locations: at the bottom of the page for specific functions (or sometime o...

1 year 前 | 0

已回答
I need help figuring out the mistake in my function approximation
Your 5th-degree polynomial is smooth (but not unique, because you only have 4 data points). You just don't plot on a fine enough...

1 year 前 | 0

| 已接受

已回答
prctile function and percentile function in excel
Quoting the Wikipedia article on Percentile, "There is no standard definition of percentile". Because of this, there can be diff...

1 year 前 | 0

已回答
dbstop if error not working
ferror is the name of a built-in MATLAB function (which the debugger cannot open into). I expect it is being called, rather than...

1 year 前 | 0

已回答
Error using confusionmat command
I'd like to see the data, but in this line C_nn = confusionmat(Y_test, Y_pred_nn); isn't Y_test a Nx1 vector (where N is the n...

1 year 前 | 0

已回答
How to have same heading for different columns in the table?
You can't have identical column names. If it's just for display purposes, you could add whitespace. t1 = rand(3,1); t2 = rand(...

1 year 前 | 0

已回答
MATLAB editor change 2021a to 2023b - Clear all breakpoints
You can still remove groups of breakpoints via the ribbon, but it does take an extra click (on the Run pull-down). This annoyed...

1 year 前 | 0

| 已接受

已回答
strong.mat file not found in MATLAB installation
The reason is that starting with R2023a, the default MATLAB installation no longer install a local copy of the documentation. Th...

1 year 前 | 1

| 已接受

已回答
Error using readtable '.1(0a)' is not a recognized file extension. Unable to detect file type.
MATLAB can't autodetect the file type, and you're not sure either, so you can try to experiment. You can specify a ('Name','Valu...

1 year 前 | 0

已回答
String in an axis label that varies depending on code
There are many possible ways to achieve this. One way is to store the strings in an array, and then index into that array using ...

1 year 前 | 0

| 已接受

已回答
install MATLAB 2017b version
Go to the Downloads page On the left-hand side of the page, click on "Show More" Click on R2017b Follow the instructions

1 year 前 | 0

已回答
Goodness of fit parameters seem to be incorrect in Curve Fitter App with Exponential 2 term
You are fitting 5 data points, using a function that has 4 free parameters. Furthermore, fitting with a double-exponential is pr...

1 year 前 | 1

已回答
Help finding cell array indices for unique characters in string names
names = cell(1, 10); names{1} = '*H'; names{2} = 'HO2'; names{3} = '*H2'; names{4} = 'H2O'; names{5} = 'H2O2'; names{6} = ...

1 year 前 | 1

已回答
"I'm trying to add an 'if' statement to analyze each result, but Matlab is 'ignoring' the condition and not performing the addition."
Is c a vector? If so, then all elements of c would have to be less than zero, to enter the if condition. This is explained in th...

1 year 前 | 0

已回答
How to get new double array from sym array
I expect it does stop, eventually. In the code below, I changed the loop over a5, so that it executes only 1/100th as many itera...

1 year 前 | 0

已回答
Trying to find the number of people overweight gives zero
I agree with @Jon that uploading your data file will help, but the problem is almost certainly what @Dyuman Joshi hints at, whic...

1 year 前 | 0

加载更多