Community Profile

# Simon Henin

14 total contributions since 2011

View details...

Contributions in
View by

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

3 months ago

Solved

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

3 months ago

Solved

Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

3 months ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 months ago

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

3 months ago

Solved

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

3 months ago

Submitted

simonhenin/mat2ft
matrix to fieldtrip structure

You need to print the variable A (not "line") to the newdata1 file. Also a quick modification will allow it to work on all the v...

6 months ago | 0

Hello, I want to plot two variables (with different number of phases)...
To plot your data against one another you could use plotyy % make up some data volume = [1:13]'+wgn(13,1, 10); % add som...

6 months ago | 0

I would like to write an else if statement from data imported from an excel file
You have a couple options. If you just want to find the row for Mary, you can use option 1. If you specifically want an if/else ...

6 months ago | 0

How to enter data in the system command?
Use sprintf to create dynamic text, for example: for i=3:5 system( sprintf('mseed2sac-2.1-win32 >> %s<>', files{i}) );...

8 months ago | 0

| accepted

Submitted

simonhenin/columnlegend
Creates a legend with a specified number of columns

Solved

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

1 year ago

Submitted

popout
creates a popout plot (e.g. zoom-in outset plot) from a specified figure.