Community Profile

# Siddharth Shankar

### MathWorks

Actif depuis 2011

Followers: 0   Following: 0

Professional Interests: Software development, GUI building, Instrument Control, Data Acquisiton

All

#### Feeds

Afficher par

A soumis

Reverse Token Order
Reverse the order of words in a string.

plus de 7 ans il y a | 1 téléchargement |

A soumis

Two Port S-Parameter Measurement
Perform a 2-port s-parameter measurement using the Instrument Control Toolbox.

plus de 7 ans il y a | 8 téléchargements |

A répondu
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....

plus de 11 ans il y a | 1

| A accepté

A répondu
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...

presque 12 ans il y a | 1

A résolu

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

environ 12 ans il y a

A résolu

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

environ 12 ans il y a

A résolu

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

environ 12 ans il y a

A résolu

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

environ 12 ans il y a

A résolu

Given a and b, return the sum a+b in c.

environ 12 ans il y a

A résolu

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

environ 12 ans il y a

A résolu

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ 12 ans il y a

A résolu

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 12 ans il y a

A résolu

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 12 ans il y a

A répondu
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...

environ 13 ans il y a | 0

| A accepté

A répondu
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...

environ 13 ans il y a | 4

| A accepté

A répondu
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...

environ 13 ans il y a | 8

A répondu
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 ...

environ 13 ans il y a | 1

| A accepté

A répondu
If you are familiar with C++, then you could consider using the <http://www.mathworks.com/help/techdoc/apiref/bqoqnz0.html#bqoqn...

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 1

A répondu
Frequency modulating a wav file?
If simulink is an option, the <http://www.mathworks.com/help/toolbox/commblks/ref/fmmodulatorpassband.html FM Modulator Passband...

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 1

A répondu
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...

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 1

A répondu
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....

environ 13 ans il y a | 1

A répondu
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...

environ 13 ans il y a | 4

A répondu
Douglas, I would recommend adding a call to FLUSHINPUT (if you are using the Instrument Control Toolbox) as soon as you FOPEN...

environ 13 ans il y a | 0

A répondu
Image Background Removal
Have you considered using the <http://www.mathworks.com/help/toolbox/images/ref/imabsdiff.html imabsdiff> method. The difference...

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 0

A répondu
Motion detection using image subtraction.
<http://www.mathworks.com/company/newsletters/news_notes/win03/tracking.html Tracking Objects> Look at the section titled: "O...

environ 13 ans il y a | 0

| A accepté

A répondu
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, ...

environ 13 ans il y a | 0