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

presque 11 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

presque 11 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 11 ans il y a

A résolu


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

presque 11 ans il y a

A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

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

presque 11 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

presque 11 ans il y a

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

presque 11 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 11 ans il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

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

presque 11 ans il y a

A résolu


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

presque 11 ans il y a

A soumis


fftnoise - generate noise with a specified power spectrum
Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation.

plus de 11 ans il y a | 3 téléchargements |

Thumbnail

A soumis


gap size
Calculates number of consequtive NaNs in a vector.

plus de 11 ans il y a | 1 téléchargement |

A soumis


Moving averages / Moving median etc
Calculates moving averages (or median/fun) of a timeseries.

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

Thumbnail

A soumis


samexaxis (nice subplots with same x axis)
Makes it alot easier to make nice figures with the same x axis.

plus de 14 ans il y a | 9 téléchargements |

Thumbnail

A soumis


Seam Carving for content aware image resizing
illustrative example of the seam carving algorithm.

plus de 15 ans il y a | 7 téléchargements |

Thumbnail

A soumis


Surfer Griddata
A gridding interface with surfer (v7). Works just like griddata.

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

A soumis


cut samples - interpolation
Interpolates irregular spaced data by 'cutting' the x axis into specified intervals.

presque 17 ans il y a | 1 téléchargement |

Thumbnail

A soumis


Average mutual information
Average mutual information

presque 17 ans il y a | 3 téléchargements |

A soumis


Moving variance
Calculates moving variance of a time series.

plus de 17 ans il y a | 2 téléchargements |

A soumis


dispmtx
Display a matrix in a nicely formatted way.

presque 18 ans il y a | 1 téléchargement |

Thumbnail

A soumis


RD3 Library
Loads and saves rd3 files (ground penetrating radar).

plus de 18 ans il y a | 3 téléchargements |

A soumis


Parse function arguments
A useful tool for parsing function arguments like 'cellspacing',6,'monkey',1

plus de 18 ans il y a | 3 téléchargements |

A soumis


tcolor (a fast pcolor that likes RGB images)
Draws an image as a texture to a plane.

plus de 19 ans il y a | 3 téléchargements |