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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 2

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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]

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

circa 12 anni fa

Risolto


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

oltre 12 anni fa

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

oltre 12 anni fa | 1