답변 있음
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...

거의 14년 전 | 0

| 수락됨

답변 있음
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...

거의 14년 전 | 0

| 수락됨

답변 있음
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...

거의 14년 전 | 2

답변 있음
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));

거의 14년 전 | 1

답변 있음
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...

거의 14년 전 | 0

답변 있음
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...

거의 14년 전 | 1

답변 있음
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...

거의 14년 전 | 0

답변 있음
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. ...

거의 14년 전 | 0

답변 있음
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...

거의 14년 전 | 1

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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]

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

대략 14년 전

답변 있음
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...

대략 14년 전 | 1