Risposto
Multiple regression with nonlinear variables
I am not certain what you want to do. Fitting a generalized additive model (GAM) for regression using the fitrgam function wo...

circa un anno fa | 1

| accettato

Risposto
Converting timestamp from TDMS LabView
I did not see the .mat file before, although I did look for it. Try this — LD = load('timestamp.mat') format long timesta...

circa un anno fa | 0

| accettato

Risposto
Variables from CSV column read incorrectly
I cannot reproduce that. Everything in your code seems to work correctly, and there are no NaN values (when run in R2024b). ...

circa un anno fa | 0

Risposto
Extracting Data from Table
It would help to have your data. Lacking it, consider doing something like this — T1 = table(reshape(repmat((1:5),5,1),[],1...

circa un anno fa | 0

| accettato

Risposto
display ‰ symbol in xlabel with latex interpreter
I think it’s hanging up on the ‘\textperthousand’ call. When I searched online, that and ‘permille’ are not generally supported...

circa un anno fa | 0

Risposto
I am calling outside functions for this code, but when I am getting an error saying I have too many output arguments. I think the error is within my function LandingDistance
The reason is that ‘LandingDistance’ doesn’t return any outputs: function LandingDistance(d1, d2, v0, thetaL) You probably wa...

circa un anno fa | 0

Risposto
The mesh function is not working for me in offline Matlab, but when I check this code in online Matlab, it works. What is the reason?
We do not have access to your computer. Run these from your Command Window or a script: restoredefaultpath rehash toolbox...

circa un anno fa | 0

Risposto
Intel vs AMD for a new build in 2025
My preference would be a high-end Ryzen CPU, at least a 1TB SSD, and as much memory as you can manage. (I have the laptop versi...

circa un anno fa | 1

Risposto
I am trying to edit an old code to simplify it but I keep getting errors. Right now I am getting the script name error even though I have followed instructions fo rnaming
Your code works here. I’m not quite sure what you’re doing. You cannot have a script name with the same name as the function...

circa un anno fa | 0

Risposto
MATLAB doesn't recognize the function optimoptions
MATLAB is case-sensitive. Try this — options = optimoptions('ga') . .

circa un anno fa | 0

Risposto
Trying to plot two vectors of unequal lengths on the same X and Y axes
There is probably no good way of doing this without compromising the data in some way. The way I would choose would be to to ...

circa un anno fa | 0

Risposto
Calculate slope of groups of numbers in a table
Try something like this — T1 = table(reshape(repmat((1:5),5,1),[],1), sort(rand(25,1)), randn(25,1), VariableNames=["Class","X...

circa un anno fa | 0

| accettato

Risposto
Extracting Data from Figures and Vectors
The easiest way is to use the interp1 function — clear, clc, close all EI = 29000*13400; % Flexural rigidity L = 48; % L...

circa un anno fa | 0

| accettato

Risposto
Area of the hysteresis loops
These do not look like hysteresis curves to me. At least, I do not see any that form loops. (I am not certain what the ‘Cycle ...

circa un anno fa | 0

| accettato

Risposto
Indexing in nonsequential order
I do not completely understand your problem, however one solution could be to use the dir function to retrieve all the files in ...

circa un anno fa | 0

Risposto
Why I am I getting a row
Thge easiest way is: x1 = x1(:) since this will force ‘x1’ to be a column vector regardless of its previous orientation. ...

circa un anno fa | 0

Risposto
Data extraction/split from table
I am not certain what reesult you want, however findgroups and accumarray (or splitapply) together are likely the direction in w...

circa un anno fa | 1

| accettato

Risposto
plotting functions with two y axes
Use the yyaxis function. It should work with tiledlayout axes. EDIT — (19 Jan 2025 at 16:10) I am not certain what result...

circa un anno fa | 0

| accettato

Risposto
Which matlab will i be able to use in my pc?
See Platform Road Map for the MATLAB and Simulink Product Families I doubt that any available releases will run on your co...

circa un anno fa | 0

Risposto
Use of symbolix toolbox to derive PI controller Kp,Ki
You can get there, however you have to force iit — syms K_P K_I L R s xi omega_0 real G_PI = (K_P*s + K_I) / s G_RL = 1 / (L...

circa un anno fa | 0

| accettato

Risposto
How to Calculate dominant frequency and centroid frequency and plot them together
The spectralCentroid 9s plotted with respect to time, and the values go from near zero to 7.14 Hz. The dominant frequency is 0....

circa un anno fa | 0

| accettato

Risposto
Find imapedance of a circuit with mesured current and voltage and frequency sweep(up to 1MHz). C and L are unknow.
By convention, the real part is the voltage, and the imaginary part is the current. Thje phase is the angle between them. Oh...

circa un anno fa | 0

Risposto
Best way to retrieve items from a cell array using a cell array of indices?
Creating ‘indices’ as a cell array is the problem. Refer to it as a double array instead — label_names={"assds", "Sasas", "...

circa un anno fa | 0

| accettato

Risposto
array indices must be positive integers or logical values when complier matlab file - Application complier
The most likely cause of that sort of error is that a variable (created before the function is called) has the same name as a fu...

circa un anno fa | 0

Risposto
how can i open .out extension file in matlab?
That depends on what is inside the file. If it is a text file, you can use either readtable or readmatrix with the addition o...

circa un anno fa | 0

Risposto
Model identyfication from plot
You will need to use the System Identification Toolbox for this. If you have both the input and output time-domain signals, sta...

circa un anno fa | 0

Risposto
I need answers can you please answer
Nodal Analysis

circa un anno fa | 0

Risposto
mean function gives an error but not median
That you are getting theee error: Array indices must be positive integers or logical values. indicates that somewhere in your...

circa un anno fa | 1

| accettato

Risposto
Black horizontal patches in the plot
Those sorts of horizontal liines are usuallly caused by unsorted data. Experiment with sorting the latitude as well: [longitu...

circa un anno fa | 0

Risposto
Importing a PDF Bank Statement into MATLAB and splitting transactions correctly
The Text Analytics Toolbox has several functions that can be used to extract data from PDF files. See the documenntation sectio...

circa un anno fa | 0

Carica altro