回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

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

8年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

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

8年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

解決済み


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年以上 前

回答済み
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年以上 前 | 1

| 採用済み

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

8年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

8年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

8年以上 前

解決済み


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年以上 前

解決済み


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

8年以上 前

回答済み
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年以上 前 | 0

さらに読み込む