Community Profile

photo

Matt Bowring


The University of New Hampshire

Last seen: plus de 3 ans il y a Actif depuis 2019

Junior at The University of New Hampshire pursuing a B.S. in Mechanical Engineering.

Statistiques

All
  • Personal Best Downloads Level 2
  • First Submission
  • First Answer
  • Solver

Afficher les badges

Content Feed

Afficher par

A soumis


Rankine Cycle
Calculates the vector curves to plot a T-s and P-v diagram for an idealized Rankine Cycle.

plus de 4 ans il y a | 16 téléchargements |

Thumbnail

A résolu


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

plus de 4 ans il y a

A résolu


Is the Point in a Circle?
Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

plus de 4 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 4 ans il y a

A soumis


Temperature - Entropy Diagram for Stirling Cycle
Generates the s and T vectors along the respective x and y axes. This allows for easy plotting of the T-s diagram via plot(s,T)....

plus de 4 ans il y a | 8 téléchargements |

Thumbnail

A répondu
how to validate the built in input function
You could add something like this: if choice ~= 1 || choice ~= 0: error('Please enter either a 1 or 0.') end If you don'...

plus de 4 ans il y a | 0

A résolu


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

plus de 4 ans il y a

A résolu


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

plus de 4 ans il y a

A résolu


Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n. Examples If input t1=1, r=1, n=7 the...

plus de 4 ans il y a

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 4 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 4 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 4 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 4 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 4 ans il y a

A résolu


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

plus de 4 ans il y a