Réponse apportée
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters
Your line v(n)= 4(-1)^(n-1)/(2(n-1)+1)+pi_estimate should be v(n)= 4*(-1)^(n-1)/(2*(n-1)+1)+pi_estimate Note: | ...

plus de 5 ans il y a | 0

Réponse apportée
How do I plotting Matlab functions, ode23, exact value functions side by side?
Like this format long r=5000; c=200*(10^(-6)); vs=10; tf=3; %%%%%%%%%%%%%%%%%%%%%%%%% %% 2 exact solution for charging an...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Where, T is the temperature in Kelvin, Beta (or β) is the thermal expansion coefficient (1/K), and Alpha (or α) is the thermal diffusivity (m2/s). Using MATLAB find the properties for T= 321, 440, and 571, respectively.
I get no error when running your script exactly as it is: ans = 3×3 table T Beta Alpha ___ _____...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Need to plot a graph of -y(t) and x(t) on MATLAB
Here are the equations that you will need to include in your pend function. Now let's see you implement them!

plus de 5 ans il y a | 0

Réponse apportée
solving system of 2 equations with complex components
Here's a non-symbolic way to solve your equations ki0 = 200; kp0 = 10; k0 = [ki0, kp0]; k = fminsearch(@search,k0); ki =...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
2 Line Styles for A Single Plot- How to Change Plotting Styles
Here's one possibility B = 0.75; C = 0.8; p =0.5; A = linspace((1-p)*B*(1-C),1.5); figure (2) [l1,l2]= bifurcation_lysogen...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting the results of 2 ODE45 in the same figure
You need to check the placing of your parentheses in the forcing functions. Try tspan = 0:1800; y0 = [0;0]; [t,y] = ode45 (@...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to solve an eaquation with a variable that occurs multiple times in the equation
You need to insert .* (dot *) instead of just * in the following x=mu0*((t/t0)).^((1.5)).*((t0+198.72)./(t+198.72)); ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Numerical Integration Involving Elliptical Functions
More like this perhaps: % Initial Values m = 0.999999119426574; % Value from Newton's Method scale = 0.04; J = 1; [K,E] ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Jacobian and Newton Rhapson Matrix running infintely
Runs much quicker without symbolics (the Jacobian is easy to obtain by hand). Like so F = @(X) [1.8*cos(X(3))+2.69*cos(X(2))-1...

plus de 5 ans il y a | 0

Réponse apportée
Negative index of matrix
Like this m = 3:-1:-3; n = 3:-1:-3; for i = 1:numel(m) for j = 1:numel(n) Y( i,j) = G(center_index + (m(i...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to Compare a Table within some Tolerance Values?
Here's one possibility x=[25.10; 30.00; 40.35]; table=[ 25.10, 200.75, 25.05, 50, 25.05; 30.00, 50.75, ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Divergent 4th-order Runge-Kutta method
I think your rather cumbersome notation has got you confused between the values u and v and their rates of change with time! Tr...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Newton's method for two variable functions
It depends on your initial guesses. Some work, some don't (not unusual for Newton's method!): Also, better practice to set D t...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to calculate the unknown matrix
help null

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Adding Plotting to bisection method
Like so: f = @(x) x^2 - 2; % arbitrary function a1 = 0; b1 = 1.8; % initial end-points c1 = f(a1); d1 = f(b1); if c1*d...

plus de 5 ans il y a | 0

Réponse apportée
how to plot it?
More like this perhaps: th=pi/180; u=[2;7;50*th;85*th]; var1 = 0:0.5:10; %%%%%%%%%%%%%%%%%%%%% for j = 1:num...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Newton's Method Help
Assuming you make x0 = [a, b]; before you pass it to the function, then replace x = (a+b)/2; by x = (x0(1) + x0(2))/2; w...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Numerical differential using a set of data
help diff

plus de 5 ans il y a | 0

Réponse apportée
Solving Eigenvalue problem (2nd order ODE)
Your mathematical equation has the inverse of the eigenvalue squared, but your code calcukates the inverse of the square root of...

plus de 5 ans il y a | 0

Réponse apportée
How to plot phase portrait given a system of equations
Do you mean something like this A = 0.5; M = [A 0; 1 A]; dXdt = @(t,X) M*X; tspan = [0 1]; X0 = [1; 1]; [t, X] = ode45(dXd...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Manual Runge-Kutta for system of two ODEs.
You need to change the order within the loop to for i=1:(length(t)-1) kx1 = F_tx(x(i),y(i)); ky1 = F_ty(x(i),y(...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Use of brackets while multiplying expression
You have E_d = 2.6*((1-alpha)/Ku)^1/3*Pe^(-2/3) which only raises the bracketed term to the power 1, then divides the result b...

plus de 5 ans il y a | 0

Réponse apportée
if condition by comparing value with vector
Use ismember a = [1 2 3 4 5]; b = [8 9 10]; c = 10; if ismember(c,a)||ismember(c,b) g = "true"; else g = "fa...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
integral I need help to integrate this function x(t)=(1-t/t0)*sin*w*(t-T) with respect to T (dT). It should be evaluted from 0 to t.
Like this syms T w t t0 q = int((1-T/t0)*sin(w*(t-T)),T,0,t); pretty(q)

plus de 5 ans il y a | 0

Réponse apportée
Solve ODE with a time dependent parameter
If you do want to use the discrete values for Iapp, the following works, though you will have to decide if the results are reaso...

plus de 5 ans il y a | 1

Réponse apportée
Why is Zero teh result of division?
Type format shorte in the command window before running the code.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Trouble solving a 3-DOF equation of motion with MATLABs ODE45
Seems to work ok the following way r =4.6; %Spar radius above taper [m] D = 2*r; %Spar diameter...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Draw angle on a MATLAB figure
Something like this: x = [0 1]; y = [0 1.5]; theta = atan(y(2)/x(2)); th = 0:1/360:theta; r = 0.1; xx = r*cos(th); yy = r*s...

plus de 5 ans il y a | 2

Réponse apportée
Unable to resolve error using dde23
Change ylag1=z(:,1); ylag2=z(:,2); ylag3=z(:,3); ylag4=z(:,4); ylag5=z(:,5); ylag6=z(:,6); yl...

plus de 5 ans il y a | 0

| A accepté

Charger plus