Community Profile

Contact

Top 5% contributor

Your input variable is a cell array. Each string is an element in that cell array and so length reports 2, because you have 2 el...

accepted

2

Answered 4 years ago

As Paulo pointed out, this most likely requires usage of cells, e.g.: >> A = {1 2 3 'A' 'B' 'C'}; >> A1 = A(randperm(6))...

1

Not sure if I correctly understand the question. If you want to put pictures on UIcontrols, e.g. buttons, then refer to <http://...

0

Answered 3 years ago

<http://www.mathworks.de/support/solutions/en/data/1-18EJN/index.html Solution 1-18EJN> contains some information to troublesh...

You might use Initial Condition (IC) blocks from the Signal Attributes sublibrary in Simulink. Those blocks allow you to specify...

If the demos for a webinar are available, then usually they get posted to the FileExchange page: <http://www.mathworks.com/matl...

The "To Workspace" block is indeed not able to write directly into some structure. If you need the data as part of the structu...

You could use a masked subsystem and just have the block instance number n as a parameter. Then in the mask initialization funct...

I am not sure which possible issues you had in mind? However, when you generate the code with Real-Time Workshop, then the numbe...

The Simulink <http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/xygraph.html XY Graph> block might help for t...

As the error message states, the iterative solver for algebraic loops is not able to solve the loop in your system because it in...

The "Choosing an Integration Algorithm" section of the SimPowerSystems documentation contains some hints on which solver paramet...

I cannot comment on the task or feasibility to rewrite all database operations as S-functions. However, within a C-code S-functi...

Maybe you can use MATLAB's interface to COM to link to your VB application? The External Interfaces Section in the MATLAB docume...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

Solve this!

2 years ago

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

Please try to run any of the shipping demos in xPC Target, e.g. >> xpctank Does this build fine? According to the repr...

This issue might be related to a <http://bugs.sun.com/bugdatabase/ view_bug.do?bug_id=4403166 bug> in Java for Windows: The ma...

I would recommend that you get in touch with MathWorks Technical Support in order to troubleshoot the issue, even if you haven't...

Release 2009a is the first one that officially supports the Microsoft Visual C++ 2008 Express Edition on Windows 64bit for Embed...

I think this is not possible. The signal dimension of an S-Function port needs to be set during the initialization phase of the ...

You can consider using model reference. The Model Reference feature allows incremental build of a model, so just the the parts o...

For running an executable that was created with MATLAB Compiler you need to install the MATLAB Component Runtime (MCR) on the ta...

I would use the datenum() function to convert your time stamps to a serial date _(see "doc datenum" for details)._ Then I would ...

For evalin() ws needs to be a string. Options are 'base' or 'caller' to denote the MATLAB base workspace or the workspace of the...

The executable that you created with MATLAB Compiler requires some runtime libraries. In MATLAB 6.5 (R13) there was a mglinstall...

Although I never tried it with a handle to an object, I think this should work. I tried passing a figure handle from one block t...

The documentation of the Target Support Package has an example model "HIL Verification of IIR Filter via SCI". You can bring up ...

The MATLAB Builder JA documentation contains a few examples on how generate a compoinent from MATLAB code as well as how to inte...

Well, you could do something like >> a = '123ABC'; >> l = size(a,2); >> rp = randperm(l/2); >> a1 = a([rp rp+l/2])...

Load more