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

más de 4 años hace | 0

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

más de 4 años hace | 0

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


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

más de 4 años hace

Respondida
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])

más de 4 años hace | 2

Enviada


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

casi 5 años hace | 3 descargas |

5.0 / 5
Thumbnail

Enviada


Moody chart
Plots the Moody chart.

más de 5 años hace | 3 descargas |

5.0 / 5
Thumbnail

Enviada


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

más de 5 años hace | 3 descargas |

5.0 / 5
Thumbnail

Enviada


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

más de 5 años hace | 5 descargas |

5.0 / 5
Thumbnail

Enviada


getfigdata
GETFIGDATA extracts the xyz data from a FIG file.

más de 5 años hace | 3 descargas |

5.0 / 5
Thumbnail

Resuelto


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

más de 5 años hace

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

alrededor de 6 años hace | 0

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

alrededor de 6 años hace | 0

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

alrededor de 6 años hace | 0

| aceptada

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

alrededor de 6 años hace | 0

| aceptada

Enviada


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

más de 6 años hace | 3 descargas |

5.0 / 5
Thumbnail

Enviada


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

casi 7 años hace | 1 descarga |

0.0 / 5
Thumbnail

Enviada


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

casi 7 años hace | 1 descarga |

0.0 / 5
Thumbnail

Enviada


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

casi 7 años hace | 1 descarga |

5.0 / 5
Thumbnail

Enviada


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

casi 7 años hace | 1 descarga |

0.0 / 5
Thumbnail

Enviada


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

casi 7 años hace | 1 descarga |

5.0 / 5
Thumbnail