Respondida
Connecting 2nd gen blocks to 1st gen
I'm not sure you would need or want to use 2nd generation for something like this. Reason being is I believe you will be adding...

más de 13 años hace | 0

| aceptada

Respondida
How can I edit SimMechanics block parameters programmatically?
It looks like you found that string in the model file. There is a similar string for 'WorkingFrames' 'Left$CS1$[0 0 0]$CG$CG...

más de 13 años hace | 0

| aceptada

Respondida
When using Protecting Referenced Models on Simulink models can you have random parameters?
Use a mask to set the parameters in the state space. This way you change the parameters for the state space on the mask instead...

más de 13 años hace | 2

Respondida
how to count more than 1 element in cell array?
I think this may be close to what you are looking for. freqElements = sum(cellfun(@(x) mean(ismember([2 5],x)) == 1,D));

más de 13 años hace | 1

Respondida
Out of memory: Have to restart matlab
You can try utilizing clear all; clear mex; clear functions; to dig a little deeper while clearing but my guess is this...

más de 13 años hace | 0

Respondida
Transfer functions in simulink
The ident gui (Sys ID Toolbox, type in ident in the command line) allows for frequency domain input. If you have magnitude, pha...

más de 13 años hace | 1

Respondida
Importing time-varying variables from Matlab to Simulink
If you have 2 dimensional data you could use a 2-d lookup table. http://www.mathworks.com/help/toolbox/simulink/slref/2dloo...

más de 13 años hace | 0

Respondida
Real Time Simulation and HIL
Depending on how important actual real-time is vs quasi real-time you could use the pacer block from the Aerospace blockset. ...

más de 13 años hace | 0

Respondida
Why 'simout' from simulink generates 0 arrays for this simple audio-processing example?
First, you can add a scope block to the simulation and see what Simulink is doing. Second, I'm not so sure your simulation me...

casi 14 años hace | 1

Resuelto


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

casi 14 años hace

Resuelto


radius of a spherical planet
you just measured its surface area, that is the input.

casi 14 años hace

Resuelto


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

casi 14 años hace

Resuelto


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

casi 14 años hace

Resuelto


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

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

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

casi 14 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

casi 14 años hace

Resuelto


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

casi 14 años hace

Resuelto


Find the sum of all the numbers of the input vector
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 ...

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

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

casi 14 años hace

Resuelto


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

casi 14 años hace

Respondida
Is there any solution to my problem ?please help me.
Another alternative, since that is a relatively small function, would be to recreate that function using Simulink blocks and cre...

alrededor de 14 años hace | 1