Community Profile

# Guillaume Le Goc

##### Last seen: 3 months ago
29 total contributions since 2017

View details...

Contributions in
View by

Storage of first few values in an array but with an if condition
You could use the find function, where you can specify the first n elements you want : A = [0.25;0.12;0.18;0.21;0.26;0.18;0.19;...

1 year ago | 0

Question

Plot contours from coordinates as a line
Hey there, I'm struggling with a problem regarding plotting a shape directly from x,y coordinates. I have a set of (x,y) coordi...

1 year ago | 1 answer | 0

### 1

Solved

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

1 year ago

How can I use parameters from workspace in custom equation using fittype function?
If you want to fit y(x) to find the parameter A, now you have set the fittype and fitoptions for the fit, you just need to perfo...

1 year ago | 0

Question

boxchart and ylim auto
Hello, I'm struggling with a weird effect of the new (R2020a) boxchart function. The latter is essentially the same thing as bo...

1 year ago | 0 answers | 0

### 0

Documentation and Live Editor shows black screen on Linux
The problem appeared again on MATLAB R2019b. I also noticed that the "Log in" button didn't work, while outputing the libselinux...

1 year ago | 1

| accepted

Solved

Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

2 years ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

2 years ago

Solved

Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

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

2 years ago

Solved

Positive Infinity
Round the array a towards positive infinity

2 years ago

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

2 years ago

Question

Documentation and Live Editor shows black screen on Linux
Hello, I'm struggling with the following problem : the documentation shows only a black screen, as you can see in the attached ...

2 years ago | 2 answers | 1

### 2

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

3 years ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

4 years ago

Solved

Given a and b, return the sum a+b in c.

4 years ago

Solved

Free passes for everyone!
THIS PROBLEM IS TEMPORALLY DECOMMISSIONED WHILE IT IS UPDATED. PLEASE WAIT _Simply return the name of the coolest numerical c...

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

4 years ago

Solved

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

4 years ago

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 years ago

Solved

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

4 years ago

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

4 years ago

Solved

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

4 years ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4 years ago

Solved

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

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

4 years ago

Solved

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

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

4 years ago

Solved

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

4 years ago