Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 2

Réponse apportée
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));

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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. ...

plus de 13 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 1

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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]

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

Réponse apportée
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...

environ 14 ans il y a | 1