統計
All
Feeds
解決済み
Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...
9年以上 前
解決済み
Add offset to a signal
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...
9年以上 前
解決済み
Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>
9年以上 前
解決済み
Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
9年以上 前
解決済み
Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...
約10年 前
解決済み
Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...
約10年 前
回答済み
output variable size matrix, while its specified type is something else.
MATLAB Function Block is having difficulty inferring the size of x. Replacing x=value(ind); with x=value(ind(1)...
output variable size matrix, while its specified type is something else.
MATLAB Function Block is having difficulty inferring the size of x. Replacing x=value(ind); with x=value(ind(1)...
約10年 前 | 2
| 採用済み
回答済み
Problem with findpeaks - error message of 'undefined variable "coder"'
This looks like it might be a path issue. Try: restore defaultpath savepath rehash toolboxcache and restart MATLAB...
Problem with findpeaks - error message of 'undefined variable "coder"'
This looks like it might be a path issue. Try: restore defaultpath savepath rehash toolboxcache and restart MATLAB...
約10年 前 | 1
| 採用済み
回答済み
Invalid MEX-file error in R2014a(32-bit)
Mex files can be version dependent. Did you generate the MEX file using MATLAB R2014a?
Invalid MEX-file error in R2014a(32-bit)
Mex files can be version dependent. Did you generate the MEX file using MATLAB R2014a?
10年以上 前 | 0
回答済み
See Generated code from Realtime workshop for Arduino
Generated C code can be reviewed by enabling the Code Generation report. In the Configuration Parameters dialog box select R...
See Generated code from Realtime workshop for Arduino
Generated C code can be reviewed by enabling the Code Generation report. In the Configuration Parameters dialog box select R...
10年以上 前 | 0
回答済み
global variable inside a function
There is no need to use a global. You can pass t in as an argument to your ode function. <http://www.mathworks.com/help/matlab/r...
global variable inside a function
There is no need to use a global. You can pass t in as an argument to your ode function. <http://www.mathworks.com/help/matlab/r...
10年以上 前 | 2
回答済み
Why does not overloading using assignin work?
Patrik, The MATLAB Answers article <http://www.mathworks.com/matlabcentral/answers/102537-why-do-i-receive-an-error-when-i-...
Why does not overloading using assignin work?
Patrik, The MATLAB Answers article <http://www.mathworks.com/matlabcentral/answers/102537-why-do-i-receive-an-error-when-i-...
10年以上 前 | 1
| 採用済み
回答済み
Is there a way, when reading a file to insert text between a deliminator.
Use strsplit with "Collapse Delimiters" disabled. inputstr = '[1,1,,1;1,1,,1;1,1,,1]'; C = strsplit( inputstr , ',' , 'C...
Is there a way, when reading a file to insert text between a deliminator.
Use strsplit with "Collapse Delimiters" disabled. inputstr = '[1,1,,1;1,1,,1;1,1,,1]'; C = strsplit( inputstr , ',' , 'C...
10年以上 前 | 1
回答済み
convert character array to cell
You can use strsplit to split the string into cells. For your output, you can use the line feed character char(10) as the delimi...
convert character array to cell
You can use strsplit to split the string into cells. For your output, you can use the line feed character char(10) as the delimi...
10年以上 前 | 0
| 採用済み
回答済み
Is there an efficient method to remove leading underscores from a cell array of strings?
b = regexprep(a,'^_','','emptymatch')
Is there an efficient method to remove leading underscores from a cell array of strings?
b = regexprep(a,'^_','','emptymatch')
10年以上 前 | 1
回答済み
Working with Cell Arrays
You can use cellfun with an anonymous function to get rid of the for loop. channel1 = { imread('cameraman.tif'),... ...
Working with Cell Arrays
You can use cellfun with an anonymous function to get rid of the for loop. channel1 = { imread('cameraman.tif'),... ...
10年以上 前 | 0
回答済み
how to generate a matrix from another matrix
You can use <http://www.mathworks.com/help/matlab/ref/rdivide.html rdivide> to do this. "rdivide" will expand the scalar "0.001"...
how to generate a matrix from another matrix
You can use <http://www.mathworks.com/help/matlab/ref/rdivide.html rdivide> to do this. "rdivide" will expand the scalar "0.001"...
10年以上 前 | 0
回答済み
Scatter plot does not display point 0,0 when double precision
This looks like an issue with the Painters renderer. Switching to OpenGL resolves the issue on my end. x = [0 0; 12 0; 6 6]...
Scatter plot does not display point 0,0 when double precision
This looks like an issue with the Painters renderer. Switching to OpenGL resolves the issue on my end. x = [0 0; 12 0; 6 6]...
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年以上 前
解決済み
Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.
10年以上 前
解決済み
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
10年以上 前
解決済み
Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...
10年以上 前
解決済み
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
10年以上 前
解決済み
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...
10年以上 前
解決済み
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
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年以上 前
解決済み
Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...
10年以上 前
解決済み
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...
10年以上 前
解決済み
Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...
10年以上 前
解決済み
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
10年以上 前