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 7 ans il y a
A résolu
Counting Sequence
Given a vector x, find the "counting sequence" y.
A counting sequence is formed by "counting" the entries in a given sequence...
presque 7 ans il y a
A résolu
Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all
the parentheses are balanced.
Examples:
* If ...
presque 7 ans il y a
A résolu
Square a Number
Given an input x, return y, which is equal to the square of x.