Respondida
Split a Table at every nth row
Here is one way: % Make up a table var1 = rand(96000,1); var2 = rand(96000,1); tbl = table(var1,var2); % Define the small...

más de 2 años hace | 0

Respondida
Varying cluster size in cluster bar chart
Sounds like the barh function will make the kind of chart you want.

más de 2 años hace | 0

Respondida
Unrecognized function or variable 'i1'.
The variables i1, i2, and i3 in the function call [a,b,c] = ThreeFunc2(i1,i2,i3) or the variables t, f1 and f2 in the functio...

más de 2 años hace | 0

| aceptada

Respondida
Run a repeated measures anova as a mixed effects model using fitlme
Here is a fairly massive re-write of your analysis. Almost all of this code is restructuring the data into the tidy format. I us...

más de 2 años hace | 0

| aceptada

Respondida
Convert covariance matrix in ecef to LLA
According to ChatGPT, this code will do it. DISCLAIMER: I have no idea if this code is accurate. I don't know what ECEF or LLA ...

más de 2 años hace | 0

Respondida
fitglme significant group interpretation
"which group could be more significant than others" is not a sound statistical question. First off, and this is an important th...

más de 2 años hace | 0

| aceptada

Respondida
convenient way to achieve max value in matrix and it location
% Define a smaller array, so we can see what is going on test = cat(3,[2 3; 5 7; 9 11],[1 4; 6 0; 8 12]) You can see that we h...

más de 2 años hace | 0

| aceptada

Respondida
Error while running matlab
Looks like that's Octave, not MATLAB. But, that being said, it looks like the problem is that there is no end statement to clos...

más de 2 años hace | 0

Respondida
How can I use repeated, k-fold cross-validation results with rocmetrics?
Note the following line from the rocmetrics documentation: "For cross-validated data, you must specify Labels, Scores, and Weig...

más de 2 años hace | 0

Respondida
How to tile m by n plots (all different) and add row titles
You can use the annotation command to add text annotations to your figure. v=tiledlayout(2,4); nexttile(1) plot(rand(8,1))...

más de 2 años hace | 0

| aceptada

Respondida
glmfit: Iteration limit reached
The first thing I notice is that the X data has missing values (NaN). MATLAB automatically removes observations (i.e. rows) wit...

más de 2 años hace | 1

Respondida
How can I know which ditribution is appropriate to fit on the generated histogram? and, How can I do that?
Fitting to the histogram of data, instead of to the raw data, is typically a bad modeling practice, because you introduce error ...

más de 2 años hace | 0

Respondida
I got error in this script
The line time = datas(:,1); will give a table with one variable. You need to use curly brackets in access the contents of the ...

más de 2 años hace | 0

| aceptada

Respondida
Run a repeated measures anova as a mixed effects model using fitlme
Please see my comment about helping us help you. That being said, I don't think you can specify the response variable as look_...

más de 2 años hace | 0

Respondida
How to distribute a matlab app using matlab web app server and AWS?
A google search turns up this documentation page on how to Run MATLAB Web App Server on AWS using Reference Architecture.

más de 2 años hace | 0

Respondida
I lost my computer where my matlab R2019b was installed
Follow the instructions on this page, under "Deactivate License on Lost or Destroyed Machine".

más de 2 años hace | 0

| aceptada

Respondida
What do the columns in the output of "matlab -timing" mean?
The -timing switch is a formerly documented feature, that still exists but is now undocumented. (I learned that fact from this i...

más de 2 años hace | 0

| aceptada

Respondida
How to change box-view styles in a 3-D plot?
It's best to ask to such different questions in two different posts. The answer to your first question is to use the view funct...

más de 2 años hace | 0

| aceptada

Respondida
Matrix to Column vector? For ground motion timehistory
% Making a smaller matrix, to see the result more easily gm = magic(3) % The algorithm: gmt = gm.'; %Transpose gm_col = gm...

más de 2 años hace | 0

Respondida
Reading a Datetime Column as Numbers Instead of Actual Dates in MATLAB
An alternative solution to my other one, but possibly more expedient for you in working with existing code, would be to use the ...

más de 2 años hace | 0

| aceptada

Respondida
Reading a Datetime Column as Numbers Instead of Actual Dates in MATLAB
As it says on the documentation page, use of xlsread is not recommended. You will almost certainly be on a happer road if you r...

más de 2 años hace | 0

Respondida
how to Calculate Gravity
You are not indexing into x correctly. Here is one way to fix it: r=8; z=15; x=0:10:100; dp=2400; G=6.67e-11; for i=1:nume...

más de 2 años hace | 0

| aceptada

Respondida
Add multiple rows of a matrix in one row.
% Create an input matrix like yours n = 4; M = rand(n,3) % Calculate the sum sumM = sum(M) As you may realize, this is a v...

más de 2 años hace | 0

| aceptada

Respondida
Read multiple csv of similar names
Something like this for x = 0:99 filename = sprintf("values%d.csv",x) tbl{x+1} = readtable(filename); end This will...

más de 2 años hace | 0

| aceptada

Respondida
What does 1V mean?
I see that that line of code is from the documentation for findpeaks. It presumably does mean volts (from context), but you can ...

más de 2 años hace | 0

Respondida
How can get a correlation plot?
Here is one plan of action: Use the readtable function to load your data into MATLAB Use corrplot to get the plot Use the cor...

más de 2 años hace | 0

Respondida
what's wrong with my ks test?
My guess here is that this line of code C = wblrnd(100,1); is not doing what you expect. It is generating just one value, from...

más de 2 años hace | 0

| aceptada

Respondida
Merging multiple graphs in the same tiled layout
If I understand what you mean, you just need to use the hold function (just after nexttile) to retain plots, rather than replaci...

más de 2 años hace | 0

Respondida
.csv using readtable doesn't make difference between the value 1 and 01
% Detect the automatic import options opts = detectImportOptions("23_Time Cards_Practice 1.CSV"); % Change of import type of...

más de 2 años hace | 1

Respondida
Plot legend has too many entries
This line yieldline_steel = plot(x1,y1,x,y_steel) plots two objects, the first of which is just a single point.

más de 2 años hace | 0

| aceptada

Cargar más