Beantwortet
Solving nonlinear equation involving sum
It will take you a long time to evaluate the sum from n = 0 to n = 10000. You can solve it in a short time considering only fro...

mehr als 4 Jahre vor | 0

Beantwortet
How to solve 3 simultaneous algebraic equations with a equality constraint.
You only need to express in terms of and plot that relationship: syms x1 x2 x3 t x3 = solve(x1+x2+x3 == 420,x3) EQ1 = x1 ==...

mehr als 4 Jahre vor | 0

Gelöst


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

mehr als 4 Jahre vor

Gelöst


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:...

mehr als 4 Jahre vor

Gelöst


The Birthday Phenomenon
First off, leap years are not being considered for this. In fact the year that people are born shouldn't be taken into considera...

mehr als 4 Jahre vor

Gelöst


Don't be mean. Be nice!
For this problem, you will be given a range of single digits R, and a separate number K. You job is to calculate the mean of al...

mehr als 4 Jahre vor

Gelöst


ZigZag matrix with reflected format
ZigZag MATRIX with REFLECTED format. We have only input x. We have to create a matrix in the following pattern. input n=5...

mehr als 4 Jahre vor

Gelöst


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 ...

mehr als 4 Jahre vor

Beantwortet
how can I plot a unit step function?
This is my proposal, I hope it helps you: u = @(t) double(t>=0); h = @(t) u(t-2)-u(t-4); fplot(h,[0,5])

mehr als 4 Jahre vor | 2

Gesendet


Water Properties
Computes some physical properties of water dependent on temperature, from 1 to 99 celsius.

fast 5 Jahre vor | 2 Downloads |

5.0 / 5
Thumbnail

Gesendet


Moody chart
Plots the Moody chart.

mehr als 5 Jahre vor | 23 Downloads |

5.0 / 5
Thumbnail

Gesendet


Colebrook-White Equation
Computes the friction factor in pipes for given values of the Reynolds number (Re) and the relative roughness coefficient (epsil...

mehr als 5 Jahre vor | 5 Downloads |

5.0 / 5
Thumbnail

Gesendet


figure2pdf
FIGURE2PDF exports the current MATLAB figure to a PDF file.

mehr als 5 Jahre vor | 5 Downloads |

5.0 / 5
Thumbnail

Gesendet


getfigdata
GETFIGDATA extracts the xyz data from a FIG file.

mehr als 5 Jahre vor | 3 Downloads |

5.0 / 5
Thumbnail

Gelöst


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

mehr als 5 Jahre vor

Beantwortet
how to write a user defined function that calculates the maximum or minimum of a quadratic equation of the form
Try this: --------------------- f = @(x) x^2-5*x+6; initial = 0; fminsearch(f,initial) --------------------- To find a max...

etwa 6 Jahre vor | 0

Beantwortet
Why power function give a complex number result?
The "problem" appears when you raise the base (-x / x50) to power n. In IEEE floating-point computations: a ^ n = exp(n * log(...

etwa 6 Jahre vor | 0

Beantwortet
Haw can I calculate the difference between two points in a plot?
Try this: --------------------------------------- plot(...) [x,y] = ginput(2); % clic on each point dx = diff(x) dy = diff(...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Adding semicolon and comma and saving it into .txt file
Try this low-level code: ----------------------------------------- x = randi(9,[1,2*6001]); % ACTUAL DATA fileID = fopen('da...

etwa 6 Jahre vor | 0

| akzeptiert

Gesendet


Hurwitz Matrix
Computes the Hurwitz matrix for a given polynomial. The principal minors are also computed.

mehr als 6 Jahre vor | 2 Downloads |

5.0 / 5
Thumbnail

Gesendet


Steady State
Steady-state (final) response of linear dynamic systems under constant input.

fast 7 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


Trapezoidal
Simulation of linear dynamic systems using trapezoidal integration method with constant time step.

fast 7 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


Jacobians
Linear approximation matrices of a non-linear dynamic model.

fast 7 Jahre vor | 1 Download |

5.0 / 5
Thumbnail

Gesendet


Equilibrium Point
Equilibrium point of a non-linear dynamic system.

fast 7 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


Friction and Roughness
Calculate the Darcy-Weisbach friction factor and estimate the relative roughness coefficient of a pipeline.

fast 7 Jahre vor | 2 Downloads |

5.0 / 5
Thumbnail