Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

Resuelto


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

más de 14 años hace

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

Respondida
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_...

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

Respondida
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)?

más de 14 años hace | 1

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Cargar más