Respondida
Rinex observation and navigation
@University Student, I suggest you post the .o and .n files whose names appear in Main_Lab3.m so people can run the program. P...

casi 5 años hace | 0

Respondida
Predator/Prey Model questions
@Nicholas Carr, line [t,p]= ode15s(@RHS, t,IC ); is where the action is in this script. Outputs: p() is Nx3array with popul...

casi 5 años hace | 0

| aceptada

Respondida
Reduce FFT bins by oversampling
@Yannick Pratte When you do a standard FFT, the output frequency spacing is where T is the duration of the sample. To get res...

casi 5 años hace | 2

| aceptada

Respondida
Power loss minimisation using fmincon
You said that one of the constraints you would like to impose is -4kW<=Pn_EV<=4kW but then you defined Pn_EV as a constant, w...

casi 5 años hace | 0

Respondida
Power loss minimisation using fmincon
I would make power_flow_equations() a standalone function and pass the reference to it to fmincon(). Since you do not have spec...

casi 5 años hace | 0

Respondida
Power loss minimisation using fmincon
Unlike some people who post on this site, you have done a good job of explaining your problem and attempting at a solution and p...

casi 5 años hace | 0

Respondida
Rotating Spring-Mass system ODE45 function
Find x(t) and y(t) then plot x vs y. You did not mention friction so we assume there is none. So the equations of motion could ...

casi 5 años hace | 0

Respondida
How to estimate p-values of optimized parameters with lsqnonlin?
@Carlotta, I am attaching a function to do what you requested. The script has explanatory comments and references. Call it wit...

casi 5 años hace | 0

| aceptada

Respondida
Pearsons correlation using corrcoef not working
@Elizabeth Lees This code eliminates each row with one or more NaNs. Thank you to @Jan for this. X = rand(10, 4); X(X < 0.1)...

casi 5 años hace | 0

| aceptada

Respondida
How to estimate p-values of optimized parameters with lsqnonlin?
@Carlotta: Here are two answers, followed by the explanation: pvalues=2*normcdf(-abs(par)./sqrt(diag(varp))) or df=numDataPoi...

casi 5 años hace | 0

Respondida
curve fit on two Y variables with unequal X?
@Arash Dabir, I would intrpolate (X2,Y2) to estimate Y2 at the values X1, for the values of X1 that lie within the bounds of X2...

casi 5 años hace | 0

Respondida
How to generate a 1D array of zeros in Matlab?
@Devika Waghela data=zeros(100000,1); %column vector data=zeros(1,100000); %row vector

casi 5 años hace | 1

Respondida
Removal of duplicate data
@Jørgen Sørebø Myhre I assume your data is in an array called data() with 9 columns and many rows, and column 2 is the station ...

casi 5 años hace | 1

| aceptada

Respondida
I would like to know how i can calculate the sum of a curve
I assume column D of the workbook you attached is the data. The spacing, , is 0.5 keV for all samples. Assunming you have r...

casi 5 años hace | 0

Respondida
Gauss-Seidel method with Successive Over Relaxation
@Muhammad Asif, Your code includes if j < i s = s + A(i,j) * x(j); else ...

casi 5 años hace | 0

Respondida
plotting 3 independent data and 1 response (output)
@Abdulaziz Abutunis This version of the code reads 4D experimental data (x,y,z,p) from a file and plots it in multiple ways, li...

casi 5 años hace | 0

Respondida
Runge-Kutta method, cannot produce the correct graphs
@Ben Bawtree, This code plots the solutions with different values of h on a single plot, and it adds the analytic solution. %B...

casi 5 años hace | 1

Respondida
Runge-Kutta method, cannot produce the correct graphs
@Ben Bawtree, See attached code. You assigned a value to y(2) initially: y(2)=1; This creates a vector of length 2, where y(...

casi 5 años hace | 1

Respondida
filtering the noise accelerator
@farough amini See code below. The code has three parts: 1. Read the data from an Excel file. 2. Filter the data. 3. Plot the ...

casi 5 años hace | 0

Respondida
Is it possible to fill a vector with my iterative results?
@Mathew McFarlane, If you do algebra on the equations in your code, you can show that C=C0*K^p; where p=pass number, and K=...

casi 5 años hace | 1

| aceptada

Respondida
Is it possible to fill a vector with my iterative results?
@Mathew McFarlane, You compute a constant inside the loop which is the same every time, so compute it outside the loop to save ...

casi 5 años hace | 0

Respondida
How to plot magnitude vs length from magnitude vs time plot
@Kaleesh Bala If your strain versus time data is in a matrix e which is Nx6 (i.e. a column for each length, and N time points=N...

alrededor de 5 años hace | 0

| aceptada

Respondida
How do I convert the vector to matrix 16 * 16
@sarah, I assume that s_box is the vector you want to reshape. s_box = reshape(s_box,[16,16])

alrededor de 5 años hace | 0

Respondida
How to use joint velocities
@N, I'm sorry to hear that the link does not work. If you type in http://www2.ece.ohio-state.edu/~zhang/RoboticsClass/, it does...

alrededor de 5 años hace | 0

Respondida
How do I succefully do a Summation in Maltab
@Mabel, To get output from more cells, just extend the input vector A with zeros on either side. The number of outputs, with t...

alrededor de 5 años hace | 0

Respondida
How do I succefully do a Summation in Maltab
@Mabel, I see that you are computing a 3-point weighted moving average, where the weighting factors are (-.1,+1,-.1). This is ...

alrededor de 5 años hace | 2

Respondida
code to sample a signal
First, you know this cosine has a frequency of 90 Hz and therefore a period of 1/90 sec = 0.0111 sec, because the formula for a ...

alrededor de 5 años hace | 4

Respondida
Error While Solving couple-Differential Equations
@Sumit Saha I ran your code, which includes non-smooth functions that are bad for ODE solvers, as @Walter Roberson explained: f...

alrededor de 5 años hace | 0

Respondida
putting a trendline on a semi-log plot in MatLab.
@Shinichiro Shimata, To add the trendline quation to the plot, see last two lines of the code below. avgspeed = [27.78; 31.14;...

alrededor de 5 años hace | 1

| aceptada

Respondida
Error While Solving couple-Differential Equations
@Sumit Saha In function Parameter_TFP(), 10 rows are combined to make vector f_Pendulum_structure. Matlab thinks the rows bein...

alrededor de 5 años hace | 0

Cargar más