Statistics
全部
Content Feed
Answered
Problem with line numbers in editor in R2016a
We have seen the same issue and found that simply closing the editor and reopening the files does the trick as well.
Problem with line numbers in editor in R2016a
We have seen the same issue and found that simply closing the editor and reopening the files does the trick as well.
6年前|1
解决了
Find the longest sequence of 1's in a binary sequence.
给定一个字符串,如年代= 011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
6年前
解决了
Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?
6年前
解决了
解决Sudoku行
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
6年前
解决了
Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( /www.tianjin-qmedu.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...
6年前
解决了
掷骰子!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
6年前
解决了
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
6年前
解决了
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of
7年前
解决了
Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...
7年前
解决了
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
7年前
解决了
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
7年前
解决了
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
7年前
解决了
Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog:
7年前
解决了
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
7年前
解决了
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
7年前
解决了
Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...
7年前
解决了
搭便车手MATLAB指南
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
7年前
解决了
返回N的3N+1序列
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
7年前