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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

Respondida
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]; ...

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

Respondida
Copy a file to a parent folder
copyfile filename ..

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

Respondida
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

más de 2 años hace | 0

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

más de 2 años hace | 1

Respondida
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} = ...

más de 2 años hace | 1

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

Cargar más