Gelöst


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

mehr als 14 Jahre vor

Gelöst


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

mehr als 14 Jahre vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

mehr als 14 Jahre vor

Gelöst


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

mehr als 14 Jahre vor

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

mehr als 14 Jahre vor

Beantwortet
Way to determine Look-up table values from input/output data
The <http://www.mathworks.com/products/curvefitting/ Curve Fitting Toolbox> is ideal for this sort of thing, but I've also used ...

mehr als 14 Jahre vor | 0

Beantwortet
return variable of Sim() command
The syntax that you are using was introduced in R2009b. If you're using R2009a or an older release, the second parameter needs t...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
COM Component for C#
Yes, the end users to need to have the MCR installed on their machines. Typically, developers use the "Add MCR" option on deploy...

mehr als 14 Jahre vor | 0

Beantwortet
Data transfer from matlab to simulink and back
Since simulation is time-based, Simulink does require inputs to have time-stamps associated with them. You can use the Constant ...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Cross-compiling 32-bit C application on machine with 64-bit MATLAB installed
You need to install the 32-bit version of MATLAB also. See <http://www.mathworks.com/support/solutions/en/data/1-579TVF/index.ht...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
MPC Block
You need to verify with your system administrator if they have purchased a license for the Model Predictive Control Toolbox. Onc...

mehr als 14 Jahre vor | 0

Beantwortet
can't run MEX files on Matlab 7.10 (R2010a)
Assuming that you have already followed James' advice and are running the mex compilation command from the directory where the f...

mehr als 14 Jahre vor | 0

Beantwortet
Matlab Simulink
Run "mex -setup" and select a supported compiler that Simulink can use. Then run the model again. Also, ensure that you have alr...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
linking simulink from m-file
To call MATLAB code from a Simulink model, use one of the three <http://www.mathworks.com/help/toolbox/simulink/ug/bq3qblc-1.htm...

mehr als 14 Jahre vor | 2

| akzeptiert

Beantwortet
Mex & shared library
This is what you are doing: y = mxGetPr(plhs[0]); y = timestwo(x); The function timestwo overwrites the input poi...

mehr als 14 Jahre vor | 1

Beantwortet
Discrete systems using s-function
Is (k-1) basically "t" at the previous step, where t is the current simulation time-step? If yes, you can store "t" in a Dwork b...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
How to Create a Video from a MATLAB Code?
Do you mean that you want to create plot animations? If yes, see http://www.mathworks.com/help/releases/R2011b/techdoc/creating_...

mehr als 14 Jahre vor | 0

Beantwortet
why do I always get this errors when I run Matlab after having installed the connector
Try following the instructions given in the Technical Solution <http://www.mathworks.com/support/solutions/en/data/1-2T7SE0/inde...

mehr als 14 Jahre vor | 0

Beantwortet
Simulink block in GUI
Yes - assuming you mean that the GUI needs to control the parameters of the Simulink model. See an example <http://www.mathworks...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
testing MATLAB dll using mbuild
<http://www.mathworks.com/help/toolbox/compiler/bskcb6d-1.html#bsojj2r This page> seems to suggest that MATLAB Compiler "creates...

mehr als 14 Jahre vor | 0

Beantwortet
Virtual Bus as model input
I think you need to convert the virtual bus to a non-virtual bus to be able to input it to a referenced model. Right-click on yo...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Line stile for virtual bus missing
Try turning on Format>Port/Signal Displays>Wide Nonscalar Lines.

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
MATLAB CODE TO C CODE
Perhaps you are not specifying the correct compiler options? Make sure to use the codegen -v (verbose) option to see the exact c...

mehr als 14 Jahre vor | 0

Beantwortet
MATLAB R2011b “Code Generation Advisor”, and How to write TLC?
"As a result of which the existing code gen scripts are encountering many issues." - this is not enough information for us to pr...

mehr als 14 Jahre vor | 0

Beantwortet
TLC debugging without Simulink Coder (RealTime Workshop)
It's not easy to guess what's going wrong with the available information - something about the way the S-function is written pro...

mehr als 14 Jahre vor | 0

Beantwortet
Simulink input output from m file
I suppose you could use the <http://www.mathworks.com/help/toolbox/simulink/gui/bq7cpr_.html#bq7cpvk-1 Input> parameters to spec...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
S-function error: not enough input arguments
Have you set the S-function parameters field in the block dialog window to "Cout,angInit" (without the quotes)?

mehr als 14 Jahre vor | 1

Beantwortet
simulink addition block error
Did you try following the instructions to specify signal dimensions on one of your blocks (maybe on the Inport block)? Alternati...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
How to get a SimStruct * from a block path?
I don't this it is possible get the SimStruct* based on the block path. However, if you specify the block path in the error mess...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
arduino simulink build error
It looks like the version of the package you have installed was developed for MATLAB R2011b, which contains the function Simulin...

mehr als 14 Jahre vor | 0

Mehr laden