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

19 days ago | 1

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

20 days ago | 0

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

20 days ago | 1

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

21 days ago | 0

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

21 days ago | 1

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

24 days ago | 0

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

27 days ago | 0

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

27 days ago | 0

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

27 days ago | 0

| accepted

Answered
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:...

28 days ago | 0

| accepted

Answered
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?...

28 days ago | 0

| accepted

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

29 days ago | 0

| accepted

Answered
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(...

29 days ago | 1

| accepted

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

29 days ago | 0

| accepted

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 1

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

1 month ago | 0

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

2 months ago | 1

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

2 months ago | 1

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

2 months ago | 1

Answered
How to use quiver correctly?
@Jin Hung, I am mostly copying the code of @KSSV. I am trying to make a plot like the oe you want to mimic. @KSSV's code give...

2 months ago | 0

Answered
Fundamental question about extracting a portion of repeating data over a large data set.
@David Probst, This version reads data from the file you posted. The columns are time, sensor reading. The first data point i...

2 months ago | 0

| accepted

Load more