Beantwortet
Choose elements, matrix with fewer elements
function y = myFun(a,b) aN = numel(a); bN = numel(b); % Make sure a is smaller if aN>bN temp ...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 1

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 5

| akzeptiert

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

mehr als 13 Jahre vor | 1

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 1

Beantwortet
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...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 3

Beantwortet
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 ...

mehr als 13 Jahre vor | 1

Beantwortet
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....

mehr als 13 Jahre vor | 1

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

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 2

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

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 4

Beantwortet
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...

mehr als 13 Jahre vor | 1

Beantwortet
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...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
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 ...

mehr als 13 Jahre vor | 5

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 4

Beantwortet
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 ...

mehr als 13 Jahre vor | 2