Community Profile

# Alekhya Hati

Last seen: 5 days ago Active since 2020

All

#### Content Feed

View by

Question

Finding cluster of positive and negative numbers in an array, then the maximum and minimum value in each cluster
Say for example, I have a = [ 2 -2 1 4 5 -3 -2 1 -1 2 5 -2 6 -7 1 3 -4] What I want is to group the elements as [2], [-2], [1...

3 months ago | 1 answer | 0

### 1

Question

Identifying minima that have no maximum above threshold between them
Using islocalmin() and islocalmax(), I get a logical array containing the information of minima and maxima of an oscillating dat...

3 months ago | 0 answers | 0

### 0

Question

How do I split an array into small array of fixed size with increments by 1?
For example, I have an array, say aa = [2 5 6 10 2 4 2 1 -1 -12 0 3 7]; What I want to do is create arrays of length 4, such a...

3 months ago | 2 answers | 0

### 2

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

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