Risposto
given the function f(x)=X^3 - 6X^2+9X. Find the first derivative of the function of f(x)
Use the polyder function — f = @(x) x.^3 - 6*x.^2 + 9*x; % Anonymouus Function p = [1 6 3 0] ...

9 mesi fa | 0

Risposto
How can I change timetable to timeseries?
According to the timeseries documentation, it wants the data values as the first argument, and the time values as the second arg...

9 mesi fa | 0

| accettato

Risposto
How to expand a matrix and interpolate between values?
This is frustrating. The seconds function should automatically convert the hours to seconds and change the unit as well. T...

9 mesi fa | 1

Risposto
closed countour around a given point
This will detect and plot all the closed contours (in addition to a second one at level 12 that does not actually meet the close...

9 mesi fa | 0

| accettato

Risposto
Legend not working in 2024 as it did in Version 6.1.
Ii cannot get the code to run here. Change the legend call to: legend([hw,hmedw(1),hmeanw(1)], 'Weight','Median','Mean', 'L...

9 mesi fa | 0

Risposto
Cell array Filtering when using readlines
Try something like this — % data = % 884×1 cell array data = { ... {[" 190 190.03 190.06 190.09 190.12 ...

9 mesi fa | 1

Risposto
I'm having trouble understanding the frequency normalization of the fir1 function regarding how the units match up.
1) The 0 to pi range represents the normalised radian representation of the Nyquist frequency, half the sampling frequency. The...

9 mesi fa | 0

Risposto
Full-wave rectified sine wave with gaps
One approach — Fs = 1000; L = 1; t = linspace(0, Fs*L, Fs*L+1).'/Fs; s = abs(sin(2*pi*t)); idx8 = numel(s) / 8; t8 = ...

9 mesi fa | 0

Risposto
Combining Similar Time Arrays into a Single Updated Time Array
There are some core MATTLAB approaches for this, depending on the result you want. You would have to convert them to timetabl...

9 mesi fa | 0

Risposto
How we can do sub-plot in one graph ?
With respect to adding element-wise operatioons to your code, use the vectorize function. The note says ‘(Not recommended)’ how...

9 mesi fa | 1

| accettato

Risposto
Breaking legend into several parts and moving parts as necessary to prevent overlapping graphed data.
I doubt that it is possible to break up the legend or have more than one legend in an axes object. There are a few options yo...

9 mesi fa | 1

Risposto
Unable to install Add-on in Ubuntu 22.04
I am not certain what the problem may be, however the problems I encountered with MATLAB updates were due to the update installe...

9 mesi fa | 0

Risposto
How do I export data to a file?
If the data are in a matrix that are assigned to one or more variables, first use the save function to save t he variables to a ...

9 mesi fa | 0

| accettato

Risposto
installling matlab 2023b in unbuntu 24.04
MATLAB R2023a does not suport Ubuntu 24.04. It does support Ubuntu 22.04 and some earlier releases. Check the Platform Roadm...

10 mesi fa | 0

Risposto
I'm new to matlab i want to estimate kinetic parameter from experimental data.
If you have defined your own objective function, one option is: Parameter Estimation for a System of Differential Equations. ...

10 mesi fa | 0

Risposto
I am running Ubuntu 24.04 and can not intall any matlab before version R2024b
According to the System Requirments for R2023a, the latest Ubuntu release it supports is 22.04. Only MATLAB R2024a and R2024b s...

10 mesi fa | 0

Risposto
Problems encountered when using sph2cart
Your data do not vary much. Also, what are the uints for ‘angle_phi_theta’ ? They appear to be more like degrees than radians ...

10 mesi fa | 0

| accettato

Risposto
How to download the older release R2024A of MATLAB for Linux (RHEL 9)?
When I installed R2024b on this laptop (Ubuntu 22.04.05 LTS) recently, I first went to Download Products and then let the insta...

10 mesi fa | 0

Risposto
how to print a table with hearders all aligned to the center of each column
The easiest way is to use a table array. x =1:5; y= x.^2; z = x*20; xyz_table = table(x(:), y(:), z(:), VariableNames={'x-...

10 mesi fa | 0

Risposto
yticks function gives error with subplot function
You probably have a variable named ‘yticks’. Run this in a script or your command window — which yticks If you get anythin...

10 mesi fa | 0

| accettato

Risposto
Got error in resample function
An alternative approach could be to creeate a timetable and then use the retime function — load handel.mat y = y(:) Fs = 819...

10 mesi fa | 0

Risposto
replace NaN value without disturb or remove important peak
One option is to use the fillmissing function and then plot the filled segments appropriately — M1 = readmatrix('41679.2500000...

10 mesi fa | 0

Risposto
how can I add a point in figure?
Probably the easiest way — figure % surf(...) % view(0,90) hold on plot3(70.00, 0.30, 1, 'sr', MarkerFaceColor='r') hold ...

10 mesi fa | 0

| accettato

Risposto
I am getting the error as " Not enough input arguments " and " Failure in initial objective function evaluation. FSOLVE cannot continue". Please suggest me possible solutions.
Note that ‘F’ is the output of ‘root2d’, however ‘F’ is nowhere defined as a calculation result in that code: function F = roo...

10 mesi fa | 0

Risposto
I need to rotate my 3D figure
It would be easier to use patch for this. Try something like this — % clc,clearvars, % close all % Example X and Y data...

10 mesi fa | 1

| accettato

Risposto
How can i solve 3 parameters of Weibull distribution under with initial data? like nonliear equation? Or do we have any method for estimate 3 parameters distribution from fail
The Statistiics and Machine Learning Toolbox norrmally fits a two-parameter Weibull distribution, howeer fitting a three-paramet...

10 mesi fa | 0

| accettato

Risposto
True Amplitude of the FFT of accelerometer data?
You apparently want your ‘time’ vector to be in milliseconds, however you do not convert it to milliseconds. This approach co...

10 mesi fa | 0

Risposto
Correct way to calculate the dominant frequency of time series signal?
If you want to see how the frequencies evolve over time, use the pspectrum function (or spectrogram, however spectrogram returns...

10 mesi fa | 0

Risposto
How can i use two seperate functions to give one output?
That depends on what the function arguments are, and what ‘one output’ is. A bit more detail would help significantly! Exa...

10 mesi fa | 1

Risposto
Can I get notification when a new version (e.g., 2025a) is released?
I ususlly get e-mails about new releases, however they are usually several days after a release is actually available. I’ve fou...

10 mesi fa | 0

Carica altro