
Siddharth Shankar
MathWorks
2011 年からアクティブ
Followers: 0 Following: 0
統計
All
Feeds
回答済み
Why does Stateflow evaluate the condition [x >= (1/2)] differently from [x >= 0.5]?
If I had to guess, I would think that 1/2 results in integer division which always yields 0, and this is then cast to double (0....
Why does Stateflow evaluate the condition [x >= (1/2)] differently from [x >= 0.5]?
If I had to guess, I would think that 1/2 results in integer division which always yields 0, and this is then cast to double (0....
12年以上 前 | 1
| 採用済み
回答済み
How to activate Stateflow substate without flow graph
Can you please expand on the question a bit? It would help if you could sketch out a very simple example example with maybe jus...
How to activate Stateflow substate without flow graph
Can you please expand on the question a bit? It would help if you could sketch out a very simple example example with maybe jus...
13年弱 前 | 1
回答済み
How to find number of arrays in a structure filed ?
Off the top of my head: function [N1, N2] = fieldCount(inputStruct) N1 = 0; N2 = 0; for i = 1: numel(inputStruct) i...
How to find number of arrays in a structure filed ?
Off the top of my head: function [N1, N2] = fieldCount(inputStruct) N1 = 0; N2 = 0; for i = 1: numel(inputStruct) i...
約14年 前 | 0
| 採用済み
回答済み
How to react on a change of variable from workspace?
One POSSIBLE solution if you are not considering a _timer_ object (and assuming that you have a relatively recent version of MAT...
How to react on a change of variable from workspace?
One POSSIBLE solution if you are not considering a _timer_ object (and assuming that you have a relatively recent version of MAT...
約14年 前 | 4
| 採用済み
回答済み
Declaring 'many' variables from work space into function workspace
A very simple (but effective) way to do this is to use EVALIN to save the necessary variables in the base workspace to a MAT fil...
Declaring 'many' variables from work space into function workspace
A very simple (but effective) way to do this is to use EVALIN to save the necessary variables in the base workspace to a MAT fil...
約14年 前 | 8
回答済み
Writing Non-ASCII keys in Serial Port
The value for CTRL-Z (^Z), is 26 (decimal value). So you could just try using FWRITE to send that value, in addition to all the ...
Writing Non-ASCII keys in Serial Port
The value for CTRL-Z (^Z), is 26 (decimal value). So you could just try using FWRITE to send that value, in addition to all the ...
約14年 前 | 1
| 採用済み
回答済み
Store and read MAT-file as embedded file in an Excel spreadsheet
If you are familiar with C++, then you could consider using the <http://www.mathworks.com/help/techdoc/apiref/bqoqnz0.html#bqoqn...
Store and read MAT-file as embedded file in an Excel spreadsheet
If you are familiar with C++, then you could consider using the <http://www.mathworks.com/help/techdoc/apiref/bqoqnz0.html#bqoqn...
約14年 前 | 0
回答済み
How do I creating a database of image files that is accessible from MATLAB?
You could store the image data into a database as a BLOB (Binary Large Object). I know you can do this in MySQL, you need to che...
How do I creating a database of image files that is accessible from MATLAB?
You could store the image data into a database as a BLOB (Binary Large Object). I know you can do this in MySQL, you need to che...
約14年 前 | 1
回答済み
Frequency modulating a wav file?
If simulink is an option, the <http://www.mathworks.com/help/toolbox/commblks/ref/fmmodulatorpassband.html FM Modulator Passband...
Frequency modulating a wav file?
If simulink is an option, the <http://www.mathworks.com/help/toolbox/commblks/ref/fmmodulatorpassband.html FM Modulator Passband...
約14年 前 | 0
回答済み
calling Java methods using JNI/C++ (via Swig) from Matlab -> UnsatisfiesLinkError
Please try adding the path to the C++ library inside the file: librarypath.txt 1. From the MATLAB command prompt: edit lib...
calling Java methods using JNI/C++ (via Swig) from Matlab -> UnsatisfiesLinkError
Please try adding the path to the C++ library inside the file: librarypath.txt 1. From the MATLAB command prompt: edit lib...
約14年 前 | 1
回答済み
How can I convert a MATLAB file into a .exe file ?
You can do this using the <http://www.mathworks.com/products/compiler/ MATLAB Compiler>. The executable created needs to be pack...
How can I convert a MATLAB file into a .exe file ?
You can do this using the <http://www.mathworks.com/products/compiler/ MATLAB Compiler>. The executable created needs to be pack...
約14年 前 | 0
回答済み
How to replace "getsnapshot" with the button on my webcam?
What you are asking for is a "hardware trigger". You could check if your VIDEOINPUT object supports hardware triggers by using t...
How to replace "getsnapshot" with the button on my webcam?
What you are asking for is a "hardware trigger". You could check if your VIDEOINPUT object supports hardware triggers by using t...
約14年 前 | 1
回答済み
MATLAB GUI
As Matt mentioned, UITABLE wasn't really supported/documented till R2008a and was not (in 7a) nearly as powerful as it is today....
MATLAB GUI
As Matt mentioned, UITABLE wasn't really supported/documented till R2008a and was not (in 7a) nearly as powerful as it is today....
約14年 前 | 1
回答済み
How to replace MATLAB icon from a figure window?
As Bruno says, that would be a breach of the MathWorks license agreement. Specific details here: <http://www.mathworks.com/su...
How to replace MATLAB icon from a figure window?
As Bruno says, that would be a breach of the MathWorks license agreement. Specific details here: <http://www.mathworks.com/su...
約14年 前 | 4
回答済み
Read Data from Serial Device
Douglas, I would recommend adding a call to FLUSHINPUT (if you are using the Instrument Control Toolbox) as soon as you FOPEN...
Read Data from Serial Device
Douglas, I would recommend adding a call to FLUSHINPUT (if you are using the Instrument Control Toolbox) as soon as you FOPEN...
14年以上 前 | 0
回答済み
Image Background Removal
Have you considered using the <http://www.mathworks.com/help/toolbox/images/ref/imabsdiff.html imabsdiff> method. The difference...
Image Background Removal
Have you considered using the <http://www.mathworks.com/help/toolbox/images/ref/imabsdiff.html imabsdiff> method. The difference...
14年以上 前 | 0
回答済み
Saving a Bilevel - or Binary Image
B = zeros(X, Y, 1, NumberOfFrames); B = logical(B); is what you are looking for. More info here: <http://www.mathworks.com...
Saving a Bilevel - or Binary Image
B = zeros(X, Y, 1, NumberOfFrames); B = logical(B); is what you are looking for. More info here: <http://www.mathworks.com...
14年以上 前 | 0
回答済み
Motion detection using image subtraction.
<http://www.mathworks.com/company/newsletters/news_notes/win03/tracking.html Tracking Objects> Look at the section titled: "O...
Motion detection using image subtraction.
<http://www.mathworks.com/company/newsletters/news_notes/win03/tracking.html Tracking Objects> Look at the section titled: "O...
14年以上 前 | 0
| 採用済み
回答済み
Creating a gui with variable axes
As far as "variable axes" goes, one approach you could take is to "link" your data to the axes. Then, when you change the data, ...
Creating a gui with variable axes
As far as "variable axes" goes, one approach you could take is to "link" your data to the axes. Then, when you change the data, ...
14年以上 前 | 0
回答済み
Help with matrix indexing.
if "i" is 1, then you can not index into c with the row index "i-1". MATLAB uses 1-based indexing. You need to "special case" yo...
Help with matrix indexing.
if "i" is 1, then you can not index into c with the row index "i-1". MATLAB uses 1-based indexing. You need to "special case" yo...
14年以上 前 | 0
回答済み
Question about assigning prhs to an int * in a mex file.
int *data = (int *) mxGetData(prhs[0]); is what you need to do. mxGetData will return a void ptr which then needs to be "ca...
Question about assigning prhs to an int * in a mex file.
int *data = (int *) mxGetData(prhs[0]); is what you need to do. mxGetData will return a void ptr which then needs to be "ca...
14年以上 前 | 1