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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

Respondida
overlap logical matrices in MATLAB
Use the logical or (|) function to accumulate the matrices — dis_threshold=0.4; a = false(5); ...

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

Respondida
How can I know which ditribution is appropriate to fit on the generated histogram? and, How can I do that?
I would use the histfit function, then if the fit appears to be acceptable, use the fitdist funciton to estimate the parameters....

alrededor de 3 años hace | 0

Respondida
Can MATLAB plot hypergeometric functions?
I do not understand what you need to plot because I do not understand your notation, however the Statistics and Machine Learning...

alrededor de 3 años hace | 0

Respondida
Error in FFT calculation
The value for ‘L’ is 7500 and for ‘L1’ is 601. If you change: P21 = abs(Y1/L1); to P21 = abs(Y1/L); you will get the ex...

alrededor de 3 años hace | 1

| aceptada

Respondida
Lorentzian fit for defined peak
First, locate the peaks using findpeaks or islocalmax to get the peak values (amplitudes) and locations. The findpeaks function...

alrededor de 3 años hace | 1

| aceptada

Respondida
Need help on how to CREATE a text file in matlab?
‘Do I use fopen or table function?’ It depends on what you want to do. If you have a numeric array with column text headings, ...

alrededor de 3 años hace | 0

Respondida
Loading and Plotting .mat file
If you want to plot the ‘wl’ field in each one, this works — Files = dir('*.mat'); figure tiledlayout(3,3) for k = 1:nume...

alrededor de 3 años hace | 0

| aceptada

Respondida
Why derivatives using matlab symbolic for a simple fuction produces different results?
They both produce the same results when I run your code — syms x y %define function z=x+1i*y; theta = angle(z); Ig1=exp(-t...

alrededor de 3 años hace | 0

| aceptada

Respondida
Continuous vs discrete time
It is difficult to follow what you are doing as you describe it. It might be best to use the Control System Toolbox functions i...

alrededor de 3 años hace | 0

| aceptada

Respondida
How do I make a 3D surface from table data?
Use the scatteredInterpolant function to generate the ‘Z’ matrix — T1 = readtable('Table Matlab surface.xlsx', 'VariableNaming...

alrededor de 3 años hace | 1

| aceptada

Respondida
Cannot extract real or imag part of a function
You are taking the real and imag parts of a function handle. It is necessary to evaluate the function handle first. Try thi...

alrededor de 3 años hace | 1

| aceptada

Respondida
toggle percentual from matrix
Perhaps this — per=5; a=magic(4) apr = a*(1-0.05) % 95% Of The Value apr = a*0.05 ...

alrededor de 3 años hace | 1

| aceptada

Respondida
Why I knock into a error when I want to get data from my double?
In ‘PCI1’ you are referencing ‘R’ however you are not passing it to ‘PCI1’ as an argument. Perhaps this — R = [[1 0.9954 0...

alrededor de 3 años hace | 1

| aceptada

Respondida
Unexpected flat surface with surf command
I do not completely understand the problem, however: [X, Y] = meshgrid(sort(x), sort(Dp_values)); could solve the problem. ...

alrededor de 3 años hace | 0

Respondida
4 equation 2 solution
Since ‘Phi’ and ‘L3’ are not defined, I created them (and ‘Alpha’) as parameters to be estimated hiere. I am not certain wh...

alrededor de 3 años hace | 0

| aceptada

Respondida
for loop with fminsearch
There is a typographical error: for i=1;100 ↑← HERE Change that to a colon and it works — %I couldnt make array v...

alrededor de 3 años hace | 0

| aceptada

Respondida
How do use the annotation function to annotate specific x-values on my graph?
I wrote a couple anonymous functions recently to transform (x,y) coordinates to normalised coordinates for just this purpose. ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Can't get symbolic numbers.
The sympref function should work, specifically: sympref('FloatingPointOutput',false); or: sympref('FloatingPointOutput','de...

alrededor de 3 años hace | 1

| aceptada

Respondida
Combining multiple matrices into a single vector
A single vector is not possible, however a 3D array is with the cat function — T1 = [2 3; 4 2]; T2 = [1 7; 9 ...

alrededor de 3 años hace | 0

| aceptada

Cargar más