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

más de 1 año hace | 1

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

más de 1 año hace | 0

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

más de 1 año hace | 0

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

más de 1 año hace | 0

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

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

más de 1 año hace | 1

| aceptada

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

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

más de 1 año hace | 0

Respondida
I need answers can you please answer
Nodal Analysis

más de 1 año hace | 0

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

más de 1 año hace | 1

| aceptada

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

más de 1 año hace | 0

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

más de 1 año hace | 0

Respondida
How to find the area between two lines of different size matrices and fill that area?
It would be helpful to have your data. That aside, the problem with your patch calls is that your data are column vectors a...

más de 1 año hace | 0

Respondida
Band pass filtering of time series data
The problem is that the sampling frequency is 1 sample/minute, making the Nyquist frequency (the highest uniquely resolvable fre...

más de 1 año hace | 1

| aceptada

Respondida
Changing Plot colors while using fitlm
I’m not sure how this works in R2019a, however if you don’t specify any specific colours in the plot calls, each plot has differ...

más de 1 año hace | 0

Respondida
readtable error after r2014a --> r2022b upgrade
Try one of these — t = readtable('test.txt', 'Delimiter',";"); or: t = readtable('test.txt', 'Delimiter',{';'}); The only ...

más de 1 año hace | 0

Respondida
Best way to plot a surface whose matrix has values of +/- infinity
Without the actual matrices (or representative matrices), it is diifficult to determine what is best. Note that fillmissing w...

más de 1 año hace | 0

| aceptada

Respondida
how to read the data of type a*b?
Taking a wild guess that the ‘multiiplicatiion’ operators are equivalent to the ‘power-of-10’ indicator ‘E’ or ‘e’, first use st...

casi 2 años hace | 0

Respondida
For 3D surface plots, do you like the command, 'shading interp'?
There are a few options that you can experiment with — [X,Y] = ndgrid(-5:0.5:5); Z = exp(-(X.^2 + Y.^2)/10); figure sur...

casi 2 años hace | 1

| aceptada

Cargar más