Question

How can i take ds/dx and ds/dy of a function numerically

I tried to take derivatives of s=-x^3+3*x*y^2 numericaly ds/dx=3*y^2-3*x^2 ds/dy=6*x*y I tried to gradient of s to find ds/dx...

27 days ago | 2 answers | 0

Question

How can i find P function which i have x and y derivatives.

My question is numerical dP/dx=[0 3.82 8.1; 0 3.59 7.74 ; 0 2.82 6.53] dP/dy=[-1 -1 -1;-4.82 -5.05 -5...

1 month ago | 0 answers | 0

Question

How to get rid of values from meshgrid

My code is below. I want to get rid of middle values of mesgrid which are very large. Nan maybe. Is there any way to get rid o...

1 month ago | 1 answer | 0

Answered

2D steady state heat conduction equation using Jacobi iteration

Try this instead of BC; T(1:ny,ny)= 200+100*(sin(pi*y(:,1))) ; T(1:ny,1)= 200+100*y(:,1) T(nx,1:nx)= 200*x(1,:) ...

2D steady state heat conduction equation using Jacobi iteration

Try this instead of BC; T(1:ny,ny)= 200+100*(sin(pi*y(:,1))) ; T(1:ny,1)= 200+100*y(:,1) T(nx,1:nx)= 200*x(1,:) ...

1 month ago | 0

| accepted

Answered

Extract data from plot

Maybe like this clc;clear; x=[1 2 3 4 5]; %x data y =[2 4 6 8 10];%y data yy=6.5 % y value you intend to reach xx = interp1...

Extract data from plot

Maybe like this clc;clear; x=[1 2 3 4 5]; %x data y =[2 4 6 8 10];%y data yy=6.5 % y value you intend to reach xx = interp1...

1 month ago | 0

| accepted

Answered

How do I use quiver with an implicit differential equation?

Maybe like this syms S C c t y [T, Y] =meshgrid(-10:0.5:10,-10:0.5:10); S= ((2.*Y-T)./(2.*T-Y)) dT = ones(size(S)); %equat...

How do I use quiver with an implicit differential equation?

Maybe like this syms S C c t y [T, Y] =meshgrid(-10:0.5:10,-10:0.5:10); S= ((2.*Y-T)./(2.*T-Y)) dT = ones(size(S)); %equat...

1 month ago | 0

Answered

direction field and solution curve for differential equation.

Did you copy to code in a new blank script. It is not an extension of a code it is a new indepentend code. It must work. Impossı...

direction field and solution curve for differential equation.

Did you copy to code in a new blank script. It is not an extension of a code it is a new indepentend code. It must work. Impossı...

2 months ago | 0

Answered

direction field and solution curve for differential equation.

Maybe like this if it works please accept the answer clc; clear; syms y(t) c sol = diff(y, t) == -t*y^3 %your equation con...

direction field and solution curve for differential equation.

Maybe like this if it works please accept the answer clc; clear; syms y(t) c sol = diff(y, t) == -t*y^3 %your equation con...

2 months ago | 0

Answered

Fitting a nonlinear curve to a small dataset

x=[2.5 3.0 4.0 5.0 6.0 7.0]; y=[-14.741408 -14.765364 -15.854609 -16.058246 -16.103032 -16.595257]; s=pchip(x,y) %you can us...

Fitting a nonlinear curve to a small dataset

x=[2.5 3.0 4.0 5.0 6.0 7.0]; y=[-14.741408 -14.765364 -15.854609 -16.058246 -16.103032 -16.595257]; s=pchip(x,y) %you can us...

2 months ago | 1

Question

How can i simplify my equation

Is ther anyway to simplify equation uo=-C/r , i want to explain uo with r not x and y syms u uo ur v Q C x y r u=C*y/(x^2+y^...

2 months ago | 1 answer | 0

Question

How can i solve P(x,y) with 2 equations of diff

Hi guys, . My problem is to find P(x,y), how can i find P(x,y) with this equations. I can accept with analtical as well as nume...

2 months ago | 1 answer | 0

Question

How to find P(x,y) with diff

I am trying to solve this diff equation u=a*x+b v=-a*y+c*x p=1 -dP/dy=(u*dv/dx+v*dv/dy)*p -dP/dx=(u*du/dx+v*du/dy)*p I wan...

2 months ago | 0 answers | 0

Question

How to solve stream function

I am trying to get stream function which expressed as s(x,y) ds/dy=u=0.5+1.2.*x; ds/dx=v=-2-1.2*y; clc,clear; syms s(x,y) x ...

2 months ago | 1 answer | 0

Question

I can not plot values

When i try to plot results, plot is blank. I want to plot this a line. syms Frx B m V1 V2 P1g P2g Frz alfa1 alfa2 A1 V M Degr...

2 months ago | 1 answer | 0

Question

How to add slicer to the plot with time steps

Hi I want to control my graph with time steps. I wish , if i chage slider, my 2D graph changes with time. Time step is 0 to 20 ...

2 months ago | 0 answers | 0

Answered

Ignoring a set of values

Try this close all clear all syms t b r; %Profit equation P = (200+b*t)*(0.65-0.01*r*t+0.00004*t^2)-0.45*t; %Best time to ...

Ignoring a set of values

Try this close all clear all syms t b r; %Profit equation P = (200+b*t)*(0.65-0.01*r*t+0.00004*t^2)-0.45*t; %Best time to ...

2 months ago | 0

| accepted

Answered

Generating a function using an array

Hi can you try this clear all;clc; x=[ 0 0.3142 0.6283 0.9425 1.2566 1.5708 1.8850 2.1991 2.5133 2.8274 3.141 3....

Generating a function using an array

Hi can you try this clear all;clc; x=[ 0 0.3142 0.6283 0.9425 1.2566 1.5708 1.8850 2.1991 2.5133 2.8274 3.141 3....

2 months ago | 0

Answered

Generating a function using an array

maybe like this. if you send data it can be easier to choose the way of function. I used sin data and choose pchip. x=[ 0 0.3...

Generating a function using an array

maybe like this. if you send data it can be easier to choose the way of function. I used sin data and choose pchip. x=[ 0 0.3...

2 months ago | 0

Question

Why while end error does not work in my code??

clear clc L=0.02;H=40;dx=0.01;dy=dx;dt=15 nx=uint32(L/dx+1);ny=uint32(H/dy+1);rx=dt/dx^2;ry=dt/dy^2; k=28;alfa=12.5*10^-6;g=5...

2 months ago | 1 answer | 0

Answered

Find optimum value to fit with the answer

Can it be like this, if you want to find value if final>100 clc;clear; syms x y t k f m x=10; y=20; k=x+y; f=20; m=10; f...

Find optimum value to fit with the answer

Can it be like this, if you want to find value if final>100 clc;clear; syms x y t k f m x=10; y=20; k=x+y; f=20; m=10; f...

2 months ago | 0

| accepted

Question

How to stop my iteration Tn(j,i)=Tn+1(j,i)

clear clc dx=0.5 nx=uint32(5/dx+1) ny=uint32(5/dx+1) [X Y]=meshgrid(linspace(0,5,nx),linspace(0,5,ny)) Tint=0 T=Tint*ones(...

2 months ago | 1 answer | 0

Question

How to show results of for end values as a vector.

Is there any way to represent results of for end as a vector. for example for h0=0:1:2 h=h0*2 end results ans h = ...

2 months ago | 1 answer | 0

Answered

How to calculate area between curve and horizontal line?

Did you see my second answer. I think it helps. If you add pause to the code it will seem like an animation. clc;clear; x = ...

How to calculate area between curve and horizontal line?

Did you see my second answer. I think it helps. If you add pause to the code it will seem like an animation. clc;clear; x = ...

2 months ago | 0

Answered

How to calculate area between curve and horizontal line?

clc;clear; x = [ 0 1 2 3 4 5 6 7 8 9 10 11 12]; y = [0 -0.5 -0.8 -0.8 -1 -1.1 -1.2 -1.2 -1.4 -1.2 -1.1 -1 0]; h0= -0.5; %the ...

How to calculate area between curve and horizontal line?

clc;clear; x = [ 0 1 2 3 4 5 6 7 8 9 10 11 12]; y = [0 -0.5 -0.8 -0.8 -1 -1.1 -1.2 -1.2 -1.4 -1.2 -1.1 -1 0]; h0= -0.5; %the ...

2 months ago | 2

| accepted

Answered

How to calculate area between curve and horizontal line?

x = [ 0 1 2 3 4 5 6 7 8 9 10 11 12] y = -[0 -0.5 -0.8 -0.8 -1 -1.1 -1.2 -1.2 -1.4 -1.2 -1.1 -1 0] Int=pchip(x,y) plot(x,ppval...

How to calculate area between curve and horizontal line?

x = [ 0 1 2 3 4 5 6 7 8 9 10 11 12] y = -[0 -0.5 -0.8 -0.8 -1 -1.1 -1.2 -1.2 -1.4 -1.2 -1.1 -1 0] Int=pchip(x,y) plot(x,ppval...

2 months ago | 0

Question

How to find my ode45 equation in specific h

syms D g H Do tspan = [0 120]; mgiren=0 Do=3; D=2/10; h0=h; g=9.81; y0 = 2; ySol= ode45(@(t,h)(mgiren-(pi()*D^2/4*(2*g*...

2 months ago | 1 answer | 0

Question

empty sym error, how to solve

syms P1 P2 V1 V2 z1 z2 g p debi Wpump Wturb Eloss Wpumpshaft npump nturb alfa1 alfa2 g=9.807 p=1000 V1=0 z1=0 alfa1=1...

2 months ago | 1 answer | 0

Question

How can i solve and plot this problem

syms D Do g H(t) t Do=10 D=0.1 g=9.81; eq=diff(H,t)==pi()*D^2/4*(2*g*H)^0.5/(pi()*Do^2/4); cond=H(0)==2; h(t)=dsolve(eq...

2 months ago | 1 answer | 0

Question

How to solve Leibnitz equation

This equation is one dimensionel leibnitz equation. How can i solve this problem. I tried int(exp(-x^2),x) but it is wrong way...

2 months ago | 2 answers | 0