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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 2

Beantwortet
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));

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

Gelöst


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]

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

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

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

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

etwa 14 Jahre vor

Gelöst


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

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

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

etwa 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

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

mehr als 14 Jahre vor | 1