Recent content by tironel
-
T
How Can Pressure and Diameter Determine Fluid Velocity in a Pipe?
A little help. I want to calculate the volumetric flow rate (SCFM (standard cubic feet per minute) of a pipe knowing the pressure inside the pipe as well as the diameter of the pipe. I know Where v is velocity and A cross sectional area. However, I need help finding out my...- tironel
- Thread
- Flow Fluid Fluid flow
- Replies: 2
- Forum: Mechanical Engineering
-
T
MATLAB Simpson's Rule in MATLAB: Single vs Composite
Ok I just completed a homework assignment by programming a Composite 1/3 Simpson's rule in matlab. However, I am asked to compare my results from a single application of Simpaon's rule with my results. I do not know how to program a single application of Simpson's rule in MATLAB or does MATLAB...- tironel
- Thread
- Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Linear Algebra - LU Decomposition using MATLAB
Yes, redefining the x like you said allowed the function to output what I was needing, however I must have an error in my coding because I inputed the following matrices and got the following answer but I am getting a 0 for one of the answers which should not be there. Any possible solutions...- tironel
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Linear Algebra - LU Decomposition using MATLAB
Below I have a code written for solving the L U decomposition of a system of equations however I need my code to just output the answers with this format it outputs the variables in the matrix for example i need the function to output x [1;2;3;4] any suggestions...- tironel
- Thread
- Algebra Linear Linear algebra Matlab
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
THANK YOU for the help! I completed my assignment and you have showed me how to start thinking to solve some MATLAB problems I am sorry I was so bothersome this is my first time to use MATLAB and my instructor gave us a homework without lecturing and does not have that great of an understanding...- tironel
- Post #10
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
I was told i need to assign an index to the for loop to get my plot to come out right I have this but for some reason it does not work it has an error at i<=length x2 which i do not understand m2=5; b2=10; i=1; x2=-5:.2:5; for i<=length(x2) y2(i)=@(x2(i)) m2.*x2.+b2; if y2<-5...- tironel
- Post #8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
Below is my code but my values on my graph for y2 do not match the values I get for my for loop. Any suggestions on correcting this problem?? %Declare an anonymous function y=mx+b.Let m, x, & b be variables in the %function. Using a while loop solve for y as x ranges from -5 to 5 in...- tironel
- Post #7
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
Declare an anonymous function y=mx+b. If you do not know how to do this look up function handles in the help document in Matlab. Let m, x, & b be variables in the function.*** I think the part confusing me is declaring m,x, and b all variables.Using a while loop solve for y as x ranges from -5...- tironel
- Post #5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
I'm sorry x m and b are all supposed to be set as variables that is why I had all three in the function denoted as variables and I am supposed to solve the y value using a while loop given the parameters of x m and b- tironel
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
MATLAB Solving for y with a While Loop
I need help with this while loop, i have to define x = -5:.1:5; m=2.5; b=7.5. I am supposed to use y=mx+b as an anonymous function and I need to solve for y using a while loop however I am haveing some problems this is the syntax I have, any help? clc,clear, y=@(x,m,b)m.*x+b while m=2.5...- tironel
- Thread
- Loop
- Replies: 9
- Forum: MATLAB, Maple, Mathematica, LaTeX