![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/7657777_1522122607276_DEF.jpg)
Quad
Followers: 0 Following: 0
統計
All
Feeds
解決済み
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 ...
4年以上 前
解決済み
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 ...
4年以上 前
解決済み
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
4年以上 前
解決済み
(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...
4年以上 前
解決済み
Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...
4年以上 前
解決済み
Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...
4年以上 前
解決済み
How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...
4年以上 前
解決済み
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
4年以上 前
解決済み
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...
4年以上 前
解決済み
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
4年以上 前
解決済み
Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...
4年以上 前
解決済み
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
4年以上 前
解決済み
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
4年以上 前
解決済み
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...
4年以上 前
解決済み
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.
4年以上 前
回答済み
How do I know the number of days that the data exceeds a given treshold in a year?
Something like this should work fine. I made some fake data and some random threshold. t1 = (datetime(1950,1,1):datetime(1999,1...
How do I know the number of days that the data exceeds a given treshold in a year?
Something like this should work fine. I made some fake data and some random threshold. t1 = (datetime(1950,1,1):datetime(1999,1...
4年以上 前 | 0
| 採用済み
回答済み
How to get a string array from a vector structure with a common field?
all_names = {results(:).Names}
How to get a string array from a vector structure with a common field?
all_names = {results(:).Names}
4年以上 前 | 1
回答済み
Initial values for ode45 solver
Well, I may not be understanding what the problem is, but bvp4c does indeed allow you do use a derivative as a boundary conditio...
Initial values for ode45 solver
Well, I may not be understanding what the problem is, but bvp4c does indeed allow you do use a derivative as a boundary conditio...
4年以上 前 | 2
回答済み
Permutation according to table
Sort has the option to also return the index of the sorted array, so you can sort P the same way. Here is a slight modification ...
Permutation according to table
Sort has the option to also return the index of the sorted array, so you can sort P the same way. Here is a slight modification ...
4年以上 前 | 0
| 採用済み
回答済み
problem with xlswrite windows
There are a few things that could cause this to go wrong. 1) Be sure that the name you are providing is a valid name for excel....
problem with xlswrite windows
There are a few things that could cause this to go wrong. 1) Be sure that the name you are providing is a valid name for excel....
4年以上 前 | 0
解決済み
Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...
約6年 前
解決済み
Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...
7年弱 前
解決済み
Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...
7年弱 前
解決済み
Van Eck's Sequence's nth member
Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...
7年弱 前
解決済み
ASCII Birthday Cake
Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...
7年弱 前
解決済み
Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...
7年弱 前
解決済み
Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...
7年弱 前
解決済み
Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...
7年弱 前
解決済み
Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...
7年弱 前