Community Profile

photo

joshua payne


Last seen: 11 months ago Active since 2022

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


i want to have subsets in my legend
clc clear all %plot oecd total energy for steps, aps, and sds TES_historical_time=[2010 2015 2019 2020 ]; TES_histori...

11 months ago | 1 answer | 1

1

answer

Question


using lsqnonlin with multiple functions
im trying to optimize parameters,x, using 3 functions, fun1, fun2, fun3. the optimized parameters must be the best fit for all ...

12 months ago | 2 answers | 0

2

answers

Question


using lsqnonlin with constraints
clc clear all %read in text data D=readmatrix('Treloar_data.xlsx'); stretch=D(1:end,1); %this is lambda lambda=stretch; ...

1 year ago | 2 answers | 0

2

answers

Question


filling a matrix using for loops
clc clear all Rmax=10; Rcyl=.5; Uinf=1; Nr=50; Ntheta=50; theta=linspace(0,2*pi,Ntheta) %discretize dr=(Rmax-Rcyl)/(...

1 year ago | 1 answer | 0

1

answer

Question


im trying to solve this system of 10 equations
clc clear all M=10 deltax=2*pi/M syms f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 U1=f1*exp(1i*deltax)+f2*exp(1i*2*deltax)+f3*exp(1i*3*d...

1 year ago | 1 answer | 0

1

answer

Question


I want to check if something algebraically simplifies to 0 when i sub in values
clc clear syms q1 q2 q3 g Y u a rho e E=[q2,((q2^2)/q1)*(1-(g-1)*.5)+(g-1)*q3,((q3*q2)/q1)+(g-1)*((q3*q2)/q1)-.5*(g-1)*(q2^...

1 year ago | 2 answers | 0

2

answers

Question


i want to use a function to calculate values using 2 changing inputs
clc clear M_inf=[1.46772 1.49692 1.52613 1.55533 1.58332 1.61132 1.63931 1.66731 1.69559 1.72386 1.75213 1.78041 1...

1 year ago | 1 answer | 0

1

answer

Question


how to calculate for a range of values for different initial conditions
function [theta]=theta_beta_M(beta,M,gamma) % return theta for beta-theta-M relationship for oblique shock beta=linspace(0,(pi...

1 year ago | 2 answers | 0

2

answers

Question


im trying to solve a system of 4 nonlinear equations with 4 unknowns
clc clear all f= @(x) [x(1)+.17*x(1)-x(2)-x(3)-x(4); (((x(3)^(1/2))*x(4))/x(2))-.465797; 2*x(1)-2*x(2)-2*x(3)-x(4); 2*(.17*x...

1 year ago | 2 answers | 0

2

answers

Question


trying to plot 3 variables in 3d
clc clear all theta= linspace(.01, .55) %for thetamax = 32 degrees M=linspace(2,5) gamma=1.4 lambda3=sqrt((((M.^2)-1).^2)-3...

1 year ago | 2 answers | 0

2

answers

Question


solving a system of equations
clc clear all M1=3 P1=101325 %pa or 1 atm theta2 = .349 %rad or 20 degrees theta3 =.262 %rad or 15 degrees %first get P2 ...

1 year ago | 1 answer | 0

1

answer

Question


need to solve for a variable numerically
need to solve for M1 based off data and equations. gamma=1.4; M=((((Po./P).^((gamma-1)./gamma)-1)*2)/(gamma-1)).^(1/2); Mso...

1 year ago | 1 answer | 0

1

answer

Question


solving an equation for a variable that has changing varibles in it
im trying to solve for M1 based off a changing Pr index1=1:304; index2=697:1000; index3=305:696; figure plot(t(index1),M...

1 year ago | 0 answers | 0

0

answers

Question


I have an equation that relies on previous values to get the next.
this is the basic set up i have P=[1 2 3 4 5] M1=0 P2/P1=(1+M2^2)/(1+M1^2) i need to solve for M2, then using M2 as the new ...

1 year ago | 1 answer | 0

1

answer