Answered
Extract number out of a string in a cell
You could do something like this: data = cellfun(@(x)sscanf(x,'%f'),a(5:end)) Where a is the name of your cell array. Th...

13 years ago | 0

| accepted

Answered
Display an imagie in 1:1 scale (pixel-for-pixel)
The documentation on <http://www.mathworks.com/help/releases/R2011a/techdoc/creating_plots/f2-14170.html Displaying Graphics Ima...

13 years ago | 1

Answered
Bode plots of discrete systems with different sample times
The only way to combine those two different transfer functions with the Control System Toolbox is to resample the faster model t...

13 years ago | 0

Answered
Getting undefined model variables
Here's a function that will find all undefined variables in a given model. It returns a cell array with the variable names and a...

13 years ago | 5

| accepted

Answered
Write a program that calculates sum of the integers numbers
or sum(2:2:30)

13 years ago | 1

Answered
calling other softwares using matlab
For ModelSim, you could create your own link as Andreas mentioned, but we actually already have a product called <http://www.mat...

13 years ago | 0

Answered
Is there a rgb2gray conversion block in Simulink ?
The Color Space Conversion block in Conversions library of the Video and Image Processing blockset can convert RGB video to inte...

13 years ago | 1

| accepted

Answered
How to represent a volume in Simulink which is divided into 1000 smaller volumes, i.e. discretization in time and space?
One approach to creating and connecting all the elements would be to write a MATLAB script to programmatically build up the Simu...

14 years ago | 1

Answered
Image Processing
I've done something similar but with a green ball to make the image processing problem simpler. Here are some of the resources I...

14 years ago | 0

| accepted

Answered
how to get top view of an image from snapshot taken from a camera kept at an angle?
The Image Processing Toolbox has functions like IMTRANSFORM that can adjust the perspective of an image. See <http://www.mathwor...

14 years ago | 0

Answered
ASCII String with SCI Transmit
If you have xPC Target you can use the <http://www.mathworks.com/help/toolbox/xpc/io_ref/asciiencodedecodecomposite.html ASCII E...

14 years ago | 0

Answered
Create a new Simulink library and associated MATLAB code
You can create a parameter dialog GUI like the built-in blocks by masking your subsystem. This blog post gives a good overview o...

14 years ago | 3

Answered
Programming simulink model to pause and fetch infrmation at a specific time
Just to add a little more onto what Guy said, for your case it sounds like you'll need to "buffer" the a b and c values to send ...

14 years ago | 1

Answered
Is it possible to send a file from 1 PC and store it on another via a network from MATLAB?
If the other computer is on the same network and you have access to the file system, you could simply use <http://www.mathworks....

14 years ago | 1

Answered
How do I animate an inverted pendulum Simulink model?
Checkout penddemo

14 years ago | 0

Answered
Importing multiple text files into MATLAB
To be more robust to directory changes or single file selections, you might want to use something like the following: [file...

14 years ago | 2

Answered
Thermodynamics tables in MATLAB
For water, the following MATLAB Central submission may be useful: <http://www.mathworks.com/matlabcentral/fileexchange/9817 X St...

14 years ago | 0

Answered
How to plot a simple curve
Another useful function for plotting simple expressions is <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ezplot.htm...

14 years ago | 0

Answered
Null matrix removal in the the output of the structure answer
It might be helpful to understand a little bit about what you are trying to do because there may be a more efficient way to do t...

14 years ago | 0

Answered
Calculating the amplitude of a sine wave in simulink
There is a block in the Math Operations library called 'MinMax Running Resettable' that will do exactly what you would like. Con...

14 years ago | 1

| accepted

Answered
Changing Simulink Resolution from Seconds to Minutes causes problems
Hi Sarah, Without seeing the model it is difficult to know exactly what the issue is, but in general changing the unit from s...

14 years ago | 0

Answered
Line break in "question dialog"
Another approach is to use a cell array: questdlg({'Text on line 1','Text on line 2'})

14 years ago | 4

Answered
interp2 in Embedded MATLAB Function
You can still use functions that are not part of the Embedded MATLAB subset by declaring them as extrinsic. Rather than being co...

14 years ago | 1

Answered
Can the value of a parameter in a model workspace be determined programatically and not dirty the model workspace?
Here is one way that does not dirty the model: hws = get_param('mymodel','modelworkspace'); myData = hws.data; p = my...

14 years ago | 2

| accepted

Answered
How do I create a plot within another plot?
Yes you can create that figure in MATLAB. You can create a rotated inset axes by adjusting the axes Position and CameraUpVector ...

14 years ago | 5

| accepted

Answered
The FIND command returns an empty matrix for a number I know exists
The issue here is that the value is not exactly 0.0305, it gets truncated when displayed in the command window. You need to save...

14 years ago | 4

Answered
Simulink Dialog Callback Executed Only When Dialog Parameter Is Changed
Hi Travis, For code that you only want to execute when parameters change, you may want to put the code in the Initialization ...

14 years ago | 2