Community Profile # Gianluca Marchetti

### Telecom Italia

Last seen: 1 year ago Active since 2020

#### Statistics

All
• • • #### Content Feed

View by

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

2 years ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

2 years ago

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

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

2 years ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

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

2 years ago

Solved

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

2 years ago

Solved

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

2 years ago

Solved

Return area of square
Side of square=input=a Area=output=b

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

Solved

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

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

2 years ago

Solved

Create a vector
Create a vector from 0 to n by intervals of 2.

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

2 years ago

Solved

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

2 years ago

Solved

Find max
Find the maximum value of a given vector or matrix.

2 years ago

Solved

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

2 years ago

Solved

Inner product of two vectors
Find the inner product of two vectors.

2 years ago

Solved

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

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

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

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

2 years ago

Question

LSTM Number of observations in X and Y disagree.
Hi, I have this problem: I have a time serie data composed by 10 features x 1934 observations. I need to predict one step ahead...

2 years ago | 0 answers | 0

### 0

Question

Error using sound in Xubuntu 20.04
Hi, I have installed Xubuntu 20.04 and then I have installed Matlab 2020. I wrote the next code: function suona(n) h1=repmat(...

2 years ago | 0 answers | 0

### 0

Is MATLAB compatible with macOS Catalina?
Hi everyone, I have an old mac with Os X 10.11.16 El Capitan. Is there a way to install Matlab 2019 or Matlab 2020 with a tria...

2 years ago | 0

Solved

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

2 years ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

2 years ago

Solved

Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

2 years ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

2 years ago

Solved

Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

2 years ago
{"ft_lang_label":"__label__en","ft_lang_prob":0.71803087,"math_prob":0.98059505,"size":4964,"snap":"2022-40-2023-06","text_gpt3_token_len":1548,"char_repetition_ratio":0.18951613,"word_repetition_ratio":0.055026457,"special_character_ratio":0.30298147,"punctuation_ratio":0.16057774,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99444336,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,1,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-02T23:47:43Z\",\"WARC-Record-ID\":\"<urn:uuid:6205382f-8c6f-4f76-a58e-55fd407a4234>\",\"Content-Length\":\"106569\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4f7fbaf6-e932-4518-81c3-8b5329d4a4a1>\",\"WARC-Concurrent-To\":\"<urn:uuid:767a8bf2-1eaf-49e3-adc7-e8e5f830c289>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://in.mathworks.com/matlabcentral/profile/authors/1014243\",\"WARC-Payload-Digest\":\"sha1:KQPMFUDYAONXEXQRLRD6AKTK3XZXGQRL\",\"WARC-Block-Digest\":\"sha1:KBUSYECYPNU2GV2UEKPWSM76AS5SOCWJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337360.41_warc_CC-MAIN-20221002212623-20221003002623-00608.warc.gz\"}"}