Answered
Get closest x value to y value from a cumulative histogram
If you have access to a toolbox with the prctile function (I don't), that will probably do the job. Alternatively, try this...

8 years ago | 0

| accepted

Answered
Exporting values from Matlab into a Formatted Text File
Here is one way to do it. Note that I collect all the output values in a cell array of strings. First, a sample input file,...

8 years ago | 0

Answered
Figure legend: how to prevent entries from showing?
h = plot(....); legend(h([1,4,7]),'original','proposed','proposed with optimisation')

8 years ago | 0

Answered
How to extract values from tables in the workspace and then plot them in a specific way
Is this what you want? x = [20,30,40]; for i = 1:16; for j = 1:8; figure; plot(x,[Table1(i,...

8 years ago | 1

| accepted

Answered
How to find the maximum point of a line on a plot with multiple lines?
[mx,i] = max(x(:,2)); tmx = t(i); hold on; plot(tmx,mx,'*r')

8 years ago | 1

| accepted

Answered
How do I plot a point at the x intercept on this graph?
Let U be a function of r only and find the solution to U(r) = 0: e=1; sigma=0.154; r=linspace(0.154,1,100); U = @(...

8 years ago | 1

Answered
Run code through multiple excel files
You could try something like this: Names = {'participantNumber';'Ar';'Br';'Xr';'Yr';'RRr';'ZRr';'SBr';... 'SLr';...

8 years ago | 0

| accepted

Answered
How to Compare datetimes with milisecs?
s = 30; % The accuracy you desire (in seconds) close_enough = abs(u1200lab(1,1)-u1300processo(1,1)) < 1/24/3600*s

8 years ago | 0

Solved


One track five lanes
Find the minimum number of lane changes necessary to cross the entire track without running into any obstacles <<http://www.a...

8 years ago

Answered
Generate synthetic data (or probability distribution object) from user-defined distribution function
Drawing random samples from a given Probability Distribution is excellently explained by Carson Chow at <https://sciencehouse.wo...

8 years ago | 1

| accepted

Solved


Ned's Queens
A tribute to Cody's five-year anniversary should also celebrate the people behind Cody, and in this particular case, our illustr...

8 years ago

Solved


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

8 years ago

Solved


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

8 years ago

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

8 years ago

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

8 years ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

8 years ago

Solved


Recaman Sequence - III
I want to create a Recaman sequence where there is a "1" in the n-th position. So from which integer should I start the Recaman ...

8 years ago

Solved


Recaman Sequence - II
Take an arbitrary starting point as input and create Recaman Sequence. Then find the 1, return its index. For example: if n =...

8 years ago

Solved


Recaman Sequence - I
Recaman Sequence (A005132 - <http://oeis.org/A005132 - OEIS Link>) is defined as follow; seq(0) = 0; for n > 0, seq(n) ...

8 years ago

Solved


Circumscribed Pentagon?
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/44368 Problem 44368>, your function will be provided with...

8 years ago

Solved


Inscribed Pentagon?
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

8 years ago

Solved


Inscribed Pentagon? 2
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

8 years ago

Solved


Cache me Outside
The test suite includes a simple recursive Fibonacci sequence generator, but it's terribly inefficient. One simple method for im...

8 years ago

Solved


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

8 years ago

Solved


Pair Primes
Let's define pair primes as follow; * *For 2 digits numbers:* 11 and 17 are pair primes because both of them are 2 digits pri...

8 years ago

Solved


Digit concentration in Champernowne's constant
Consider the first 50 digits of Champernowne's constant 0.12345678910111213141516171819202122232425262728293... The...

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

8 years ago

Solved


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

8 years ago

Answered
I want to plot a set of points satisfying certain condition. Although, there are many points in this set satisfying the given condition, the code I am using plots only the last point. Anyone can help me to plot all these points?
You should specify a marker, since otherwise Matlab tries to plot a line between points. With only one point for each plot stat...

8 years ago | 0

Load more