Réponse apportée
Why won't my plot start 0 and increase to 0.005 like my Ld
It does. It just uses the exponent to scale it. Add these lines: Ax = gca; Ax.XAxis.Exponent = 0; to see the tick labels...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Delete rows of excel if any empty cell found
I am not certain how you want to sort the ‘Station’ by ‘shortest to the longest’. Try this — T1 = readtable('datax.xlsx', ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to graph values of different lengths?
The ‘time’ vector has 10080 elements and ‘EV_power’ has 10230 elements. One way to fix that is to create: time = linspace(0...

presque 3 ans il y a | 0

Réponse apportée
How I can plot input signal in ode45
Create a second output for ‘u’ (ode45 will ignore it during the integration) and then return it using a for loop after the integ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
how to use all the data for a nonlinear regression?
You can only do the regression on complete data rows, so I used the rmmissing function to accomplish that. Try something like...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Extract the timing of a specific sound (beep) from an Audio File
It would help to have the file. I assume that the background sounds also contain 300 Hz elements, so unless there is somethi...

presque 3 ans il y a | 0

Réponse apportée
Plotting variables of continuously array with different colors
You can use either unique or findgroups for this to get serial indices — T1 = readtable('datax.xlsx') [Us,ix1,ix2] = unique(T...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
why ismember() does not return correct result
They may have very small values that are not shown, especially if they are calculated. Using the ismembertol function will li...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to read txt file and put the words on a vector and the numbers in a matrix?
If that is the exact file, readtable is going to have problems with it. Using fgetl and textscan — type('Alexandre_2023_10...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
I have two set data and I want to calculate the area in different x and plot the area curve with respect to X
Perhaps this — x=[1 1.5 1.7 2 2.2 2.6 2.8]; y=[0 2 6 7 8 10 5]; int_y = cumtrapz(x, y); figure plot(x, y, 'DisplayName',...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Drawing a turning tangent on fitted curve
Perhaps this — xvalue = 20:1:30 yvalue = [56.7 59.8 64.8 66.7 66.2 65.2 64.2 63.5 63.0 62.7 62.5] p = polyfit(xvalue, yval...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to draw a rectangle around the area that shows an energy variation
It would help to have your data. An adaptive approach using contour3 — Fs = 500; L = 300; t = linspace(0, L*Fs, L*Fs+1)/F...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to make the for loop the length as the array inside the for loop?
You do not need the loop at all. Just use the diff function — x1 = [1e6:20000:5e6]; L = 4e6; % in m D_c = 5000;% in m D1 =...

presque 3 ans il y a | 0

Réponse apportée
Can I create the same FIR filter using two different commands?
Getting the same filter using ttwo differnt methods is probably possible. Comparing a windowed design (using kaiserord here wit...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How can I create a bandpass FIR filter using firpm?
I could not get this to work with firpm, since it apparently only works with lowpass filters. Getting it to work with fir1 i...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Changing exponential axis scale
I am not certain what the problem is. The approach you took appears to work here (R2023b) — c = 3e+08; % Speed of light in ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How To solve this equation?
One approach — syms x f = symsum(((5*x+2)^(1/5))/x, x, 1, 1E+3) fvpa = vpa(f) .

presque 3 ans il y a | 0

Réponse apportée
Adding values to a table
One approach (that works) — DateTime = datetime([2020 01 01]) + calmonths(0:5)'; Incidence = randi(10,6,1); tab = table(Dat...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
i want to convert my data to time series.
This is a common problem in biomedical signal processing, and is referred to as creating an ensemble. One example using a photo...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
plot with two variables.
I can’t run the code without the variables. That aside, choose vector ranges for ‘phi_rad’ and ‘phi1_rad’ and use the ndgrid ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to do weighted least square rgression?
One option is to use fitlm — weight=[18.5204555170429; 24.8007492441765; 21.4204953742493; 12.0007299687922; 5.17482448096073...

presque 3 ans il y a | 0

Réponse apportée
Split data based on column value to write in different sheets in excel
Using accumarray, one line to segment the matrix, then one loop to write the file sheets (and a second loop to verify the result...

presque 3 ans il y a | 0

Réponse apportée
How to make an automated and updated legend for ts step response graph
The Control System Toolbox plots are characteristically difficult to work with. The best option would be: [y,tOut] = step(F...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How can I replay the results I got with the pspectrum function on the spectrogram function?
You can’t equate the pspectrum and spectrogram function outputs because the units are different. The spectrogram function produ...

presque 3 ans il y a | 0

Réponse apportée
Summing elements in an array between uneven date intervals
I am not certain what you want. If I am readiing the file correctly and converting the dates correctly (both 'excel' and 'posix...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How performing FRF for complex functions
Try this — s = tf('s'); H = (1257*s + 3.736e05) / (s^2 + (1554 - 2e02i)*s + (3.736e05 - 2e02i)) opts = bodeoptions; opts....

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Simple Vector Indexing Question
Put all the indices inside one set of square brackets — Vector = 1:20; activeVector = Vector([3:7 10:15]) This is a simplifi...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
overlap logical matrices in MATLAB
Use the logical or (|) function to accumulate the matrices — dis_threshold=0.4; a = false(5); ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Dificulty plotting graph of function for basic bending moment graph
Use the second argument to fplot to limit the independent variable range — %bending moments calculator syms X %force 1 F1=5...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Polar Scatter Plot using 3 Data Set
Try this — th = linspace(0,2*pi,20); r = rand(1,20); a=[1:1:20]; sz = 75; % polarscatter(th,r,sz,a,'filled') [x,y,z] ...

presque 3 ans il y a | 0

| A accepté

Charger plus