Answered
How can I add a Counter block by M file script ?
To find the source address of a block to use with add_block, first browse the Simulink Library Browser to get to your block. Fo...

mer än 10 år ago | 1

| accepted

Answered
Importing vector from workspace to simulink then conditionally use them (Communication related)
I would first suggest the Switch block in the Simulink Signal Routing library. This would allow you to switch between two signa...

mer än 10 år ago | 0

| accepted

Answered
Run Javascript from MATLAB
You cannot directly execute a JavaScript file in MATLAB. However, if you can set up a web server with a page that executes your...

mer än 10 år ago | 0

| accepted

Answered
Is the "timer" function deployable in Matlab 6.5 (Release 13)
The TIMER function was not deployable in MATLAB 6.5 since it creates an object. In the _Limitations and Restrictions_ section o...

mer än 10 år ago | 0

| accepted

Answered
cell array conversion to numeric array
My guess is that your cell array is 2D but contains empty values so that when CELL2MAT attempts to take each cell row and create...

mer än 10 år ago | 0

Answered
How can I setup masked subsystems to have a gradient color background?
In the Mask Editor, the first tab _Icon & Ports_ allows you to define the block icon. The bottom of the tab shows what drawing ...

mer än 10 år ago | 1

Answered
Getting information through mex about caller workspace variables
In MATLAB, I would use WHOS to inspect the workspace for variables. If I was writing a function and needed to inspect the calle...

mer än 10 år ago | 1

Answered
Quicker alternative to EVAL
I would suggest trying a few approaches and seeing which is fastest with TIC/TOC. For more advanced performance debugging, use ...

mer än 12 år ago | 1

Answered
Object composition and property updating
You should think about whether the tire needs to be exposed as a public property on the car, or whether it can be private. In a...

mer än 12 år ago | 1

| accepted

Answered
Reference Application API via Matlab
MATLAB has an API for COM objects that you might try. See <http://www.mathworks.com/help/techdoc/matlab_external/brd4at8.html U...

mer än 12 år ago | 0

Answered
Constant, Persistent value, and profile versioning
One option is to use a CONSTANT property assigned to an object instance. See the doc <http://www.mathworks.com/help/techdoc/mat...

mer än 12 år ago | 2

| accepted

Answered
filter an array of objects based on the value of a string property
You can create a logical mask using ARRAYFUN, where you execute a function on each object that returns true if the object is the...

mer än 12 år ago | 0

Answered
c# integration with Matlab
Can you call your C# program using MATLAB's <http://www.mathworks.com/help/techdoc/matlab_external/brpb5k6.html .NET interface>?...

mer än 12 år ago | 0

Answered
Plotting two 3D figures (mesh,surf) - set different parameters
There are lots of properties for a surface object that allow you to control transparency. You can also use ALPHA to quickly...

mer än 12 år ago | 2

| accepted

Answered
looking for a function like integral2
You are probably using an older version of MATLAB. The INTEGRAL2 function was added along with INTEGRAL and INTEGRAL3 in R2012a...

mer än 12 år ago | 0

| accepted

Answered
Shrink a 1-D array (vector) by removing all the columns with a value of zero
Here is a good solution: NewSimpleArray = SimpleArray(SimpleArray ~= 0)

mer än 12 år ago | 9

| accepted

Answered
How to load Google Earth Toolbox?
You might need to <http://www.mathworks.com/help/techdoc/matlab_env/f8-28521.html update your toolbox path cache>. This is typi...

mer än 12 år ago | 0

Answered
How to save output arguments from functions called by timers
A simple option to communicate between your program and timer callback is to make the timer callback a nested function in your m...

mer än 12 år ago | 0

| accepted

Answered
radio button prompt
Radio buttons are typically used when there is a set of mutually exclusive options to choose from. For this use case, MATLAB pr...

mer än 12 år ago | 0

| accepted

Answered
fsolve
FSOLVE only accepts a one-input function. However, you can create an anonymous function and bind your second input to a particu...

mer än 12 år ago | 0

Answered
Modifying the dynamic Java classpath when Java objects are loaded
Steve Lord answered a similar question on the MATLAB Newsgroup. I think <http://www.mathworks.com/matlabcentral/newsreader/view...

mer än 12 år ago | 0

Answered
Problem with gaoptimset in unix
The GAOPTIMSET function is installed with Global Optimization Toolbox. Do you have that product installed? You can check with ...

mer än 12 år ago | 0

| accepted

Answered
Run Script file from Matlab
Try using MATLAB's FTP function. doc ftp

mer än 12 år ago | 0

| accepted

Answered
Problem accessing MATLAB functions
Do you have System Identification Toolbox installed? You can see a list of installed toolboxes by executing: ver In add...

mer än 12 år ago | 2

| accepted

Answered
Function referring to abstract class
Your problem description suggests to me that you might want to structure your classes according to the <http://en.wikipedia.org/...

mer än 12 år ago | 2

| accepted

Answered
Pi Day
The correct answer is <http://tauday.com Tau>.

mer än 12 år ago | 2

| accepted

Answered
Set text in GUI figure axis
A look through the <http://www.mathworks.com/help/techdoc/ref/text_props.html documentation for TEXT properties> shows the Paren...

mer än 12 år ago | 1

| accepted

Answered
logical indexing
Use LOGICAL to do the type conversion: a(logical(b))

mer än 12 år ago | 2

| accepted

Answered
manage a list of instances of a class
You might want to use a PERSISTENT variable within nodelist() to keep track of the nodes. For example: function varargout ...

mer än 12 år ago | 0

| accepted

Answered
Binary output formatting
Instead of displaying each piece of the string in the loop, you could append it onto a variable that is displayed once at the en...

mer än 12 år ago | 0

| accepted

Load more