Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4 Monate ago

Solved


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

4 Monate ago

Answered
Issue with SEIR model for mathlab
Hi, I am not able to reproduce your error. The file is running normally on my Matlab version, both with a live script and a n...

4 Monate ago | 0

| accepted

Submitted


Estimation of Surface Fluxes from single mean profiles
The applicability of the method by Basu (2018,2019) to estimate atmospheric stability solely based on surface‚Äźlayer profiles is ...

6 Monate ago | 3 downloads |

Thumbnail

Submitted


Response of a line-like structure to a random load
The time history of the displacement response of a line-like structure to Gaussian white noise is computed

9 Monate ago | 5 downloads |

Thumbnail

Submitted


Wind turbulence in the neutral and unstable surface-layer
A short set of functions to study surface layer fluxes and wind velocity spectra (simulated data) for wind engineering applicati...

9 Monate ago | 5 downloads |

Thumbnail

Submitted


Ogive function for turbulent flux characterization
A simple example of the computation and fitting of the ogive function for atmospheric turbulence

9 Monate ago | 3 downloads |

Thumbnail

Solved


Tax Calculator
Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

etwa ein Jahr ago

Submitted


Harmonic excitation of a SDOF
Implementation of some numerical methods to study forced vibrations of a SDOF in the time domain.

mehr als ein Jahr ago | 15 downloads |

Thumbnail

Submitted


Automated Frequency Domain Decomposition (AFDD)
Modal parameters identification from ambient vibrations measurement using the FDD

mehr als ein Jahr ago | 34 downloads |

Thumbnail

Submitted


Flutter velocity of a suspension bridge
The coupled flutter velocity of a single-span suspension bridge is computed in the frequency domain

mehr als ein Jahr ago | 5 downloads |

Thumbnail

Solved


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

fast 3 Jahre ago

Submitted


Short introduction to the Generalized Extreme Values (GEV) distribution
The GEV distribution is calculated with and without the Matlab statistical toolbox for wind data

mehr als 3 Jahre ago | 4 downloads |

Thumbnail

Submitted


Evolutionary Power Spectral Density (EPSD)
Compute the Evolutionary Power Spectral Density (EPSD) as an alternative to the spectrogram

mehr als 3 Jahre ago | 9 downloads |

Thumbnail

Submitted


Static analysis - Suspension bridge - A benchmark solution
This matlab code computes the static displacement of a suspension bridge

mehr als 4 Jahre ago | 9 downloads |

Thumbnail

Submitted


Non-Gaussian process generation
A non-Gaussian random process is generated from a Gaussian-distributed white noise

fast 5 Jahre ago | 6 downloads |

Thumbnail

Solved


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

etwa 5 Jahre ago

Solved


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

etwa 5 Jahre ago

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

etwa 5 Jahre ago

Solved


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

etwa 5 Jahre ago

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

mehr als 5 Jahre ago

Solved


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

mehr als 5 Jahre ago

Solved


Differential equations I
Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

mehr als 5 Jahre ago

Solved


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

mehr als 5 Jahre ago

Solved


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

mehr als 5 Jahre ago

Solved


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

mehr als 5 Jahre ago

Solved


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

mehr als 5 Jahre ago

Solved


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

mehr als 5 Jahre ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

mehr als 5 Jahre ago

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

mehr als 5 Jahre ago

Load more