Respondida
How to take the average every 4 data points?
@민수, I assume that you want a function that returns the average of points 1-4, then the average of points 5-8, then the average...

más de 3 años hace | 2

Respondida
I am looking into how to create a function that would calculate the first derivative of a data set using the finite difference methods
@Sarah Elena Aiko Johnson, You have posted images which are screenshots of your code. It is more helpful if you cite and paste ...

más de 3 años hace | 0

Respondida
How to Plot the Trajectory of points on a bendRightAngle when Rotated 90 degrees
@Steven Thompson, Matlab can define a polygon. It could be convenient for your work. The only possible disadvantage is that a p...

más de 3 años hace | 1

Respondida
How to Plot the Trajectory of points on a bendRightAngle when Rotated 90 degrees
You can define a nx2 array of points on the sofa S=[0,0;1,0;2,0;3,0;3,2;2,2;2,1;1,1;0,1;0,0]; And plot it plot(S(:,1),S...

más de 3 años hace | 0

Respondida
difference between "geodetic2aer" and "azimuth" function
@MatG, azimuth, by default, assumes the Earth is a sphere. geodetic2aer() ias using wgs84 spheroid, in your usage. If you tell ...

más de 3 años hace | 1

Respondida
How do I plot a bifurcation diagram with known dynamical equations of motion (> 3 dimension)?
@Rebeka, Let's suppose that y is 1x5 and that the parameter is A, as in your diagram. Let's also assume that the equaitons of ...

más de 3 años hace | 0

Respondida
Call on function that takes in 2 variables multiple times
@Spacestudent112233, You can write a funciton that returns values whose size varies as the size of the inputs vary. I am not su...

más de 3 años hace | 1

Respondida
Error using Spherical harmonics: Array dimensions must match for binary array op.
@Jamie Al, [edit: correct spelling errors] The error is because Ylm has size 61x121, and p0 has size 128x128x128. Therefore y...

más de 3 años hace | 0

Respondida
z transfer function evaluates to inaccurate value near z=1
@Ashish Panpalia, The function is tricky, as z approaches 1, since the numerator and denominator both tend toward zero. Why d...

más de 3 años hace | 0

Respondida
three phase three winding transformer Leakage indcutance
@omsuraj gutti, that is not a Matlab question. I recommend you try a different site.

más de 3 años hace | 0

Respondida
two signals with different frequencies to play at the same time without audio clipping
@F, I see that you are starting from A440, divividing by 2 to go down an octave, then using the circle of fifths with equal tem...

más de 3 años hace | 0

| aceptada

Respondida
How to create meshgrid for unequal metrix.
@Jigar, The answer below shows how to create a grid that is non-uniform. The figures in the answer show how it worked. https:...

más de 3 años hace | 0

| aceptada

Respondida
Interpreting Phase Bode Plot from Empirical Transfer Function
@Perry, great quesiton. Could you post a file with the experimental data a_z and F_t, which you used in the claculaitons above?...

más de 3 años hace | 0

| aceptada

Respondida
how to generate random number in a rectangle like this?
@Daniel Niu, I will assume that there are 5 equally likely options, and that for each option, you want to pick a random point in...

más de 3 años hace | 0

| aceptada

Respondida
finding PM and GM for a system
@Cait, Your results look reasonable to me. % Part 1 - plot nyquist plot for K=15 G = tf([900],conv([1 10],[1 4 4])); figure(...

más de 3 años hace | 1

| aceptada

Respondida
how does matlab simulate electric field
@abdullah, Matlab does not simulate the electric field. The user does, by writing code that implements the standard equations...

más de 3 años hace | 1

| aceptada

Respondida
Can anyone help me calculating the average covariance of return?
@Silvia Grasso, [Edit: change the name of the initial matrix; it should not be Fcvc, it should be S. Add code to construct Fcv...

más de 3 años hace | 0

Respondida
How do isosurface and isocaps affect the size of stlwrite's output?
@Simone Cotta Ramusino, When you say "I get a 116.8 mm STL" and "this closed my volume and leaves the size to 116.8 mm", how ex...

más de 3 años hace | 0

Respondida
using chi2gof to determine sample representativeness
@Khalil EL HACHEM, Your code (below) does not work because chi2gof expects a vector x containing the observed values of the val...

más de 3 años hace | 0

Respondida
Write a script to determine the change in temperature of the liquid over a 200 minute time period using the following equation: T(i+1)=T(i)+K*(Delta_t)*(F-T(i))
@Kyle, The change in temperature in each time step is proportional to the difference bwteeen the current temp and the fridge te...

más de 3 años hace | 0

Respondida
Converting beat-by-beat data into second average
@Jason, I have done this in Labview before but not Matlab. Make a time series of HR versus time, where HR is computed as 1/(R-...

más de 3 años hace | 0

Respondida
How do isosurface and isocaps affect the size of stlwrite's output?
@Simone Cotta Ramusino, [edit : fix spelling errors] isocaps is the way to go. Adding the background slices, even if they are...

más de 3 años hace | 0

Respondida
I want to draw the workspace of a gripper finger
@Ahmed, your code follows: clc; oe=48.218; j4p=166.696; pb=86.488; theta1=28.219; j3j4=42.219; j2j3=42; hold on for th...

más de 3 años hace | 1

Respondida
How to put two separate scales on the same x-axis?
@Stephen Bompastore, As is often the case, @dpb has already answered your quesiton. https://www.mathworks.com/matlabcentral/an...

más de 3 años hace | 1

Respondida
Most Efficient Way to Smooth Wavelet Spectral Matrix over Time and Frequency
@Anas Khan, I think your approach is good. It has the virtues of being readable and easy to follow. You do not need clear k c...

más de 3 años hace | 0

| aceptada

Respondida
What is the "-20dB" bandwidth of a signal and how to calculate it in MATLAB
@2NOR_Kh, @Star Strider has given an excellent answer that explains, with code and figures, how to find the bandwidth of a filt...

más de 3 años hace | 0

| aceptada

Respondida
Can I use "chi2gof" code in this case?
@Chris, yes you can use the chi squared test to test whether the distribution of results fits an expected distribution. If the ...

más de 3 años hace | 0

| aceptada

Respondida
How to accurately compute the phase lag between two time series with same sampling frequency.
@Adnan Barkat, There is a nice reuslt below, it just takes a while to get to it. To estimate phase lag of ser1 relative to ser...

más de 3 años hace | 1

Respondida
How to accurately compute the phase lag between two time series with same sampling frequency.
@Adnan Barkat, I will address your quesiton about phase, but first I have some quesitons. Then I adress phase, below. Your up...

más de 3 años hace | 1

Respondida
How to use quiver correctly?
@Jin Hung, The code below makes a plot like the plot you posted, which you said you want to mimic. This code does not use quiv...

más de 3 años hace | 1

Cargar más