How to create a random n matrix with out any conditions
@Hajar Alshaikh, There is no way to create random numbers that are truly "without any condition". You can create random number...

17 days ago | 0

| accepted

Interpolate consecutive values of a single array
@Luca Castrogiovanni, I assume that the values in beta are not a simple sequence such as beta=1:100. If that were tru, this wo...

17 days ago | 1

| accepted

What factors influence the result of the optimization problem?
@Behrooz Daneshian, Usually a model makeas a specific prediciton, and the difference between the model prediction and the exper...

19 days ago | 0

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

20 days ago | 2

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

20 days ago | 0

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

22 days ago | 1

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

22 days ago | 0

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

23 days ago | 1

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

23 days ago | 0

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

23 days ago | 1

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

27 days ago | 0

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

30 days ago | 0

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

30 days ago | 0

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 1

| accepted

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

1 month ago | 0

| accepted

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

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

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

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

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

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

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

How to put two separate scales on the same x-axis?

1 month ago | 0

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

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