Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 5

| A accepté

Réponse apportée
Write a program that calculates sum of the integers numbers
or sum(2:2:30)

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 3

Réponse apportée
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 ...

presque 14 ans il y a | 1

Réponse apportée
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....

presque 14 ans il y a | 1

Réponse apportée
How do I animate an inverted pendulum Simulink model?
Checkout penddemo

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 2

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

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 0

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

presque 14 ans il y a | 4

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
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 ...

presque 14 ans il y a | 5

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 4

Réponse apportée
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 ...

presque 14 ans il y a | 2