Answered
Add columns to excel file
@Truc, It seems to me far easier to add the missing leads in Excel. The attached Excel workbook has columns added for leads III...

2 months ago | 0

Answered
I can't figure out how to write equations of motion into Matlab.
@Alejandro Nava, Please read the examples in ode45() help pages carefully, They are very helpful. You have two angular velocit...

2 months ago | 1

| accepted

Answered
The Newton Raphson Method
@Bruce, It appears that your x is a 2-coulmn array where column1 = theta, column 2=phi. I assume you have a function pendulum(...

2 months ago | 0

Answered
I'd like to know how to make histogram with matlab raw data file.
@HYUK BIN KWON, I recommend that you read the help for load and for importdata, and try the examples provided. histogram(x) do...

2 months ago | 0

Answered
Display divergence of trajectories
@Jambalya, PLease attach code as .m files instead of attaching screenshots of code. You say "after 1000 interations". I am no...

2 months ago | 0

Answered
Problem using biquad filter object
@Vincent St-Pierre, I'm not sure why your code does not work, but a simple 4th order Butterworth works fine. See code below. ...

2 months ago | 0

| accepted

Answered
How do I compare two simulation files?
@Ali AlMuslih, Here is an example of what I mean. I am attaching two files of simulated data, with 5 records , plus a column f...

2 months ago | 0

Answered
how to plot bifurcation graph
@shiv gaur, I do not understand what you are bdoing with a(), b(), and c() inside the main loop (the loop "for j=2:Nt+1, ..., e...

2 months ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 1

| accepted

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

2 months ago | 0

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

3 months ago | 2

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

3 months ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 months ago | 0

Load more