Civil Engineer specilized in Geotechnics.

Question

Classification (machine learning)

Good morning. I need to implement a classification algorithm: I have several time series and I need to recognize the trend. For...

1 month ago | 1 answer | 0

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

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

5 months ago

Solved

Determine if input is odd

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

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

5 months ago

Solved

7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: <http://...

5 months ago

Solved

Test if a Number is a Palindrome without using any String Operations

*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

5 months ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

5 months ago

Solved

Number of 1s in the Binary Representation of a Number

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

5 months ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

5 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

5 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

5 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

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

5 months ago

Solved

Vector creation

Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

5 months ago

Solved

Doubling elements in a vector

Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

5 months ago

Solved

Flip the vector from right to left

Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

5 months ago

Solved

Whether the input is vector?

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

5 months ago

Solved

Get the length of a given vector

Given a vector x, the output y should equal the length of x.

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

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

5 months ago

Answered

Delete all rows in cell array based on value

A = {table(rand(3,2)); table(rand(3,2)); table(rand(3,2))}; B = {1; 0; 1}; C = horzcat(A,B); D={}; ii=0; jj=0; for ii=1:...

Delete all rows in cell array based on value

A = {table(rand(3,2)); table(rand(3,2)); table(rand(3,2))}; B = {1; 0; 1}; C = horzcat(A,B); D={}; ii=0; jj=0; for ii=1:...

5 months ago | 2

Submitted

Download elevations from Google Maps (API key required)

Get elevations from Google Maps (Google API key required) from latitute and longitude, coordinates input (UTM)

6 months ago | 8 downloads |

Answered

How to evalutate AREA from connected points?

I solved my problem with a second software: I used ArcGIS! Thank you for all your suggestions, it helped me to change my PoV o...

How to evalutate AREA from connected points?

I solved my problem with a second software: I used ArcGIS! Thank you for all your suggestions, it helped me to change my PoV o...

6 months ago | 0

| accepted

Submitted

Rotate point cloud on orizontal plane - script (ITA, ENG)

The script fits a point cloud with a plane, rotates the plane on the horizontal and retrieves the coordinates of the rotated poi...

6 months ago | 2 downloads |