답변 있음
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: | ...

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 1

| 수락됨

답변 있음
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 ___ _____...

대략 5년 전 | 0

| 수락됨

답변 있음
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!

대략 5년 전 | 0

답변 있음
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 =...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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 (@...

대략 5년 전 | 0

| 수락됨

답변 있음
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)); ...

대략 5년 전 | 0

| 수락됨

답변 있음
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] ...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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, ...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
how to calculate the unknown matrix
help null

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
Numerical differential using a set of data
help diff

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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(...

대략 5년 전 | 2

| 수락됨

답변 있음
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...

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 1

| 수락됨

답변 있음
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)

대략 5년 전 | 0

답변 있음
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...

대략 5년 전 | 1

답변 있음
Why is Zero teh result of division?
Type format shorte in the command window before running the code.

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 0

| 수락됨

답변 있음
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...

대략 5년 전 | 2

답변 있음
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...

대략 5년 전 | 0

| 수락됨

더 보기