統計
All
Feeds
回答済み
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'),... ...
11年弱 前 | 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"...
11年弱 前 | 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]...
11年弱 前 | 1
回答済み
Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).
The function <http://www.mathworks.com/help/releases/R2013b/matlab/ref/randn.html |randn|> assumes a standard normal distributio...
Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).
The function <http://www.mathworks.com/help/releases/R2013b/matlab/ref/randn.html |randn|> assumes a standard normal distributio...
約11年 前 | 0
回答済み
what should you do to add additional coins in this image?
What are the constraints on the problem? Do you want to detect coins, copy them, and insert them into the image or do you just w...
what should you do to add additional coins in this image?
What are the constraints on the problem? Do you want to detect coins, copy them, and insert them into the image or do you just w...
約11年 前 | 0
回答済み
need function to compute iterations of element in matrix
One approach is to create a logical matrix for the input by comparing it to the target value. You can then sum a row, column, or...
need function to compute iterations of element in matrix
One approach is to create a logical matrix for the input by comparing it to the target value. You can then sum a row, column, or...
約11年 前 | 1
| 採用済み
回答済み
whats the meaning of these question? " Subscripted assignment dimension mismatch."
This error occurs when the dimensions of the array resulting from the assignment expression do not match the explicitly defined ...
whats the meaning of these question? " Subscripted assignment dimension mismatch."
This error occurs when the dimensions of the array resulting from the assignment expression do not match the explicitly defined ...
約11年 前 | 4
| 採用済み
回答済み
Plotting 3 variables of a single function
<http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic Sliceomatic> on Matlab file exchange is a useful tool for t...
Plotting 3 variables of a single function
<http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic Sliceomatic> on Matlab file exchange is a useful tool for t...
約11年 前 | 0
回答済み
Why I can draw lines on the Axes but can't draw lines anymore after imshow a picture on Axes?
|OutputToComputer_Callback| may be called before |continue_pencil|. You should initialize |handles.coord| in your opening functi...
Why I can draw lines on the Axes but can't draw lines anymore after imshow a picture on Axes?
|OutputToComputer_Callback| may be called before |continue_pencil|. You should initialize |handles.coord| in your opening functi...
約11年 前 | 0
回答済み
How do I name a file from part of the file name read in?
The function <http://www.mathworks.com/help/matlab/ref/strsplit.html |strsplit|> will split a string into parts based on a delim...
How do I name a file from part of the file name read in?
The function <http://www.mathworks.com/help/matlab/ref/strsplit.html |strsplit|> will split a string into parts based on a delim...
約11年 前 | 0
| 採用済み
回答済み
user defined equation fit to a dat a set
The <http://www.mathworks.com/help/releases/R2013b/curvefit/fit.html fit function> can use custom non-linear models. <http://www...
user defined equation fit to a dat a set
The <http://www.mathworks.com/help/releases/R2013b/curvefit/fit.html fit function> can use custom non-linear models. <http://www...
約11年 前 | 1
| 採用済み
回答済み
will "if exist('a','var') && a == 2" always work, without throwing an exception?
All of these approaches will throw an error if |a| is not a numeric array, logical array, character array, or categorical array....
will "if exist('a','var') && a == 2" always work, without throwing an exception?
All of these approaches will throw an error if |a| is not a numeric array, logical array, character array, or categorical array....
約11年 前 | 1
回答済み
Matlab executable crash/error - missing dll??: IESHIMS.ddl and MCLMCRRT7_15.dll
Has MATLAB Compiler Runtime 7.15 been installed on the deployment machines? The MCR version must match the compiler version used...
Matlab executable crash/error - missing dll??: IESHIMS.ddl and MCLMCRRT7_15.dll
Has MATLAB Compiler Runtime 7.15 been installed on the deployment machines? The MCR version must match the compiler version used...
約11年 前 | 0
回答済み
How to save multiple varibles from the function into the workspace?
You can return multiple variables from a function using the function definition syntax: function [ out1 , out2 , out3 ] =...
How to save multiple varibles from the function into the workspace?
You can return multiple variables from a function using the function definition syntax: function [ out1 , out2 , out3 ] =...
約11年 前 | 0
回答済み
How to Crop an Image
The function |imcrop| returns a matrix. You are trying to store this matrix as a single element of an array. This is not possibl...
How to Crop an Image
The function |imcrop| returns a matrix. You are trying to store this matrix as a single element of an array. This is not possibl...
約11年 前 | 1
回答済み
plot tools:add data color
If you want to make the line black at the time of plotting, add the argument |'k'| to the plot command. Example: figure;...
plot tools:add data color
If you want to make the line black at the time of plotting, add the argument |'k'| to the plot command. Example: figure;...
約11年 前 | 0
| 採用済み
回答済み
plotting the number of actions for ex i=i+1 ( action), pgd=n/i ( action), pgd=n(action)
You can create a variable to count the number of actions taken and increment it every time an action is take. Have your function...
plotting the number of actions for ex i=i+1 ( action), pgd=n/i ( action), pgd=n(action)
You can create a variable to count the number of actions taken and increment it every time an action is take. Have your function...
約11年 前 | 0
回答済み
Quiver always come on top !!!!
You can fiddle with the z values of the patch to change whether it appears on top. Z values larger than 1 will usually make the ...
Quiver always come on top !!!!
You can fiddle with the z values of the patch to change whether it appears on top. Z values larger than 1 will usually make the ...
約11年 前 | 0
回答済み
Pointer Setting for identifying time of corresponding data
Let's see if I have your situation right. Your measurements are stored in a 9450x10 matrix where each row is a row correspond...
Pointer Setting for identifying time of corresponding data
Let's see if I have your situation right. Your measurements are stored in a 9450x10 matrix where each row is a row correspond...
約11年 前 | 0
| 採用済み
回答済み
How to store the co-ordinates of a pixel in an array?
Assuming that by the first 10 pixels, you mean the first 10 in column major order, <http://www.mathworks.com/help/releases/R2013...
How to store the co-ordinates of a pixel in an array?
Assuming that by the first 10 pixels, you mean the first 10 in column major order, <http://www.mathworks.com/help/releases/R2013...
約11年 前 | 1
回答済み
Designing a lowpass filter with lesser filter coefficients with the required parameters
This <http://www.mathworks.com/help/dsp/examples/designing-low-pass-fir-filters.html example article> gives a great run down of ...
Designing a lowpass filter with lesser filter coefficients with the required parameters
This <http://www.mathworks.com/help/dsp/examples/designing-low-pass-fir-filters.html example article> gives a great run down of ...
約11年 前 | 0