Community Profile

# Alex Pedcenko

### Coventry University

26 total contributions since 2017

#### Alex Pedcenko's Badges

View details...

Contributions in
View by

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.

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

8 mois ago

Solved

Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

8 mois ago

Removing Unwanted data from a bunch of data
It is because the number of data points is not exactly the same in all the curves, "missing" points are padded as zeros. E.g. l...

11 mois ago | 1

| accepted

Removing Unwanted data from a bunch of data
I think you need to split your [n x 2] data array into separate curves, then perform find on all curves when e.g. y-value exceed...

11 mois ago | 1

Question

Will MATLAB Live editor ever support spellcheck?
It is quite frustrating when writing documents in MATLAB Live editor to find there is no spellcheck facility.

11 mois ago | 2 answers | 0

### 2

Submitted

Reading data from mobile phone sensors (mobiledev)
Shows how to save/update mobile phone sensors' logs to MATLAB Drive continuously (sensors.m) and access this data from PC (plots...

11 mois ago | 10 downloads |

Randomization in Matlab Grader
There is a way to achieve some level of individualisation in Grader. Unfortunately it is not possible to generate problem descri...

11 mois ago | 2

Solved

Parse me a Lisp
*Description* In Lisp and its variants, function calls are done using parenthesis where the first item in the parenthesis is ...

environ un an ago

Solved

Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

environ un an ago

Submitted

N-body simulation with leapfrog scheme
Interactive gravitational N-body simulation using Leapfrog DKD scheme.

environ un an ago | 1 download |

Submitted

N-body simulation with ode45
Gravitational N-body simulation using ode solvers of MATLAB

environ un an ago | 4 downloads |

Gtk-Message: 10:32:31.466: Failed to load module "canberra-gtk-module"
this is not the "problem"

plus d'un an ago | 0

Function call in ode45 does not work?
it looks like there are not enough arguments to ode45 [t,y] = ode45(odefun,tspan,y0) if you give odefun and all 4 inputs t...

plus d'un an ago | 0

Formulation to Matlab code
seems OK

plus d'un an ago | 0

Submitted

snake
This example demonstrates how to get mouse coordinates in figure

plus d'un an ago | 1 download |

How to export figures as pdf without truncated borders.
This seems to happen when you are saving "maximized plot" window to PDF. MATLAB tries to fit figure into portrait page layout (...

plus d'un an ago | 1

Question

why "MATLAB Support Package for Android Sensors" is not available any more????
why "MATLAB Support Package for Android Sensors" is not available any more????

plus d'un an ago | 1 answer | 0

### 1

Question

1D matrix addition weirdness
>> ones(5,1)+ones(1,5) ans = 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

plus de 2 ans ago | 1 answer | 0

### 1

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

plus de 3 ans ago

How do I plot a toroid in MATLAB?
R=5; % outer radius of torus r=2; % inner tube radius th=linspace(0,2*pi,36); % e.g. 36 partitions along perimeter of the tu...

plus de 3 ans ago | 7

Solved

An asteroid and a spacecraft
&#128640 Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian ...

plus de 3 ans ago

Solved

Sums of Distinct Powers
You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

plus de 3 ans ago

Solved

Acid and water
&#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; Assume that there is a 100 liter tank. It is initially fi...

plus de 3 ans ago

Solved

"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

plus de 3 ans ago

Solved

The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

plus de 3 ans ago