統計
All
Feeds
回答済み
2014b Subplot legend zoom error
Hi Lena. I got a response from mathworks that states the following: Hello Justin, I am writing in reference to your ...
2014b Subplot legend zoom error
Hi Lena. I got a response from mathworks that states the following: Hello Justin, I am writing in reference to your ...
10年弱 前 | 1
| 採用済み
解決済み
Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...
10年以上 前
解決済み
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
10年以上 前
解決済み
What is the next step in Conway's Life?
Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...
10年以上 前
解決済み
Return the 3n+1 sequence for n
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...
10年以上 前
解決済み
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
10年以上 前
解決済み
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
10年以上 前
回答済み
Solve equation with 2 variables being vectors
Edited for clarification: This may do the trick. It has a loop but only one for implementing the function. After it is run ...
Solve equation with 2 variables being vectors
Edited for clarification: This may do the trick. It has a loop but only one for implementing the function. After it is run ...
10年以上 前 | 0
回答済み
Slider Event Listener Creates a new figure instead of updating Existing figure.
Hello :) I don't have the image processing toolbox but I believe imshow will work similar to some other functions. You shoul...
Slider Event Listener Creates a new figure instead of updating Existing figure.
Hello :) I don't have the image processing toolbox but I believe imshow will work similar to some other functions. You shoul...
10年以上 前 | 1
| 採用済み
解決済み
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
10年以上 前
回答済み
Plotting multiple figures from a for loop on the same graph
I'm not sure I understand exactly what you are trying to get but I will try to help. Matlab nomenclature usually refers to th...
Plotting multiple figures from a for loop on the same graph
I'm not sure I understand exactly what you are trying to get but I will try to help. Matlab nomenclature usually refers to th...
10年以上 前 | 4
回答済み
How can I eliminate the following error?
The problem comes in when you are defining your M as an array of doubles before the loop. I would make sure there exists no M i...
How can I eliminate the following error?
The problem comes in when you are defining your M as an array of doubles before the loop. I would make sure there exists no M i...
10年以上 前 | 4
| 採用済み
回答済み
How do I disable the new pop-up command history window?
One way is to press the up arrow in the command window so the history shows up. Then you can right click the bar on the top of ...
How do I disable the new pop-up command history window?
One way is to press the up arrow in the command window so the history shows up. Then you can right click the bar on the top of ...
10年以上 前 | 6
| 採用済み
回答済み
Converting Cell to Double
There may be a better way to import the text file so the data is automatically read in as numeric values. Try using the Import ...
Converting Cell to Double
There may be a better way to import the text file so the data is automatically read in as numeric values. Try using the Import ...
10年以上 前 | 0
| 採用済み
回答済み
How to create a matrix of four dimensions in which the fourth dimension is not fixed?jkjsdfhlksdjhf
If you don't need to compile your code Matlab is very flexible with array sizes. For example if you have A = zeros([2 2]); you ...
How to create a matrix of four dimensions in which the fourth dimension is not fixed?jkjsdfhlksdjhf
If you don't need to compile your code Matlab is very flexible with array sizes. For example if you have A = zeros([2 2]); you ...
10年以上 前 | 0
回答済み
How to track numbers in the MATLAB excel sheet?
I believe the correct name for what you are referring to as the Matlab excel sheet is called the Variable Editor. A simple an...
How to track numbers in the MATLAB excel sheet?
I believe the correct name for what you are referring to as the Matlab excel sheet is called the Variable Editor. A simple an...
10年以上 前 | 0
回答済み
How to speed up the following code. I need to optimize it for fastest performance in Matlab 7.0 version
What is lat_BOX and lon_BOX and where are m and n defined? Also, what is the concept of what the conditional statements are app...
How to speed up the following code. I need to optimize it for fastest performance in Matlab 7.0 version
What is lat_BOX and lon_BOX and where are m and n defined? Also, what is the concept of what the conditional statements are app...
10年以上 前 | 0
回答済み
Finding x-values from found y-values
If I understand the question correctly you want may just be able to use <http://www.mathworks.com/help/matlab/ref/ginput.html gi...
Finding x-values from found y-values
If I understand the question correctly you want may just be able to use <http://www.mathworks.com/help/matlab/ref/ginput.html gi...
10年以上 前 | 0
回答済み
How to pick the j-th percentile of a vector?
Is the function <http://www.mathworks.com/help/stats/prctile.html prctile> what you are looking for? It is in the statistics ...
How to pick the j-th percentile of a vector?
Is the function <http://www.mathworks.com/help/stats/prctile.html prctile> what you are looking for? It is in the statistics ...
10年以上 前 | 0
回答済み
Interpreting varargin name-value pairs.
I'm always a fan of cellfun. inputExist = find(cellfun(@(x) strcmpi(x, 'fontname') , varargin)); if inputExist font...
Interpreting varargin name-value pairs.
I'm always a fan of cellfun. inputExist = find(cellfun(@(x) strcmpi(x, 'fontname') , varargin)); if inputExist font...
10年以上 前 | 0
解決済み
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
10年以上 前
回答済み
problem for creating vector with for loop
This is not a difficult task to do but does take a little extra planning in how to index the first array. I'll give you an ex...
problem for creating vector with for loop
This is not a difficult task to do but does take a little extra planning in how to index the first array. I'll give you an ex...
10年以上 前 | 0
解決済み
Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...
10年以上 前
解決済み
Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...
10年以上 前
解決済み
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
10年以上 前
解決済み
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...
10年以上 前
解決済み
Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...
10年以上 前
解決済み
Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...
10年以上 前
解決済み
Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...
10年以上 前