답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 5

| 수락됨

답변 있음
Write a program that calculates sum of the integers numbers
or sum(2:2:30)

13년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 3

답변 있음
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년 전 | 1

답변 있음
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년 전 | 1

답변 있음
How do I animate an inverted pendulum Simulink model?
Checkout penddemo

거의 14년 전 | 0

답변 있음
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년 전 | 2

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

거의 14년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

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

거의 14년 전 | 4

답변 있음
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년 전 | 1

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 전 | 5

| 수락됨

답변 있음
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년 전 | 4

답변 있음
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년 전 | 2