Answered
Simscape Multibody *** Model not assembled: position violation ***
Hi Garett Do you have the chance to share the model? It must be a detail in there that needs sorting out. Br Juan

3 mois ago | 0

Answered
Modeling Half-Car Suspension in Simulink/Simscape?
Hi there I managed to put together the model you describe graphically. It is easy to build with Foundation Library components. ...

3 mois ago | 0

Answered
How to make a gate valve work in a hydraulic circuit?
Hi there Have you checked that the unit in the S-PS converter for the gate valve is set to mm? If not, Simscape believes it is ...

3 mois ago | 0

Answered
how to use a variable-length cable
Hi Amir I think that you need a prismatic degree of freedom linking upper and lower parts in your rod. Each part with its ow...

3 mois ago | 0

| accepted

Answered
Different height tanks using Thermal Liquid Simscape Blocks
Hello Pedro This shall be alright to simulate. Check the link below > Inlet Height. https://se.mathworks.com/help/physmod/...

3 mois ago | 0

Answered
Incorrect extreme values of numerical derivative
Hi J├Ârgen It looks like the kinematic motion in MATLAB is somehow idealized. The one from SolidWorks is asymmetric and thus sh...

3 mois ago | 0

Answered
How to create tunable parameters for a standalone FMU Export?
Hi David You need to set in the Simscape Preferences (MATLAB user pane) the option Show Run-time parameters on. https://se...

3 mois ago | 0

| accepted

Answered
Pulling against Gravity with a Pulley System
Hi Matthias It is difficult to say what happens without the model. But i wonder if the rigid transform between the revolute j...

3 mois ago | 0

| accepted

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

3 mois ago

Answered
Gas-Charged Accumulator
Hi Andy We have such a block but in our Simscape Fluids toolbox. https://se.mathworks.com/help/physmod/hydro/ref/gaschargeda...

3 mois ago | 0

| accepted

Answered
How to transfer simulation output from Simscape Results Explorer
Hi Henrik The results of the model shown in the Explorer are retrieved automatically in MATLAB workspace after the simulation...

3 mois ago | 0

| accepted

Answered
Is it possible to find the acceleration profile for a simple spring mass system using Simscape?
Hi Naresh The easiest is to use a derivative from simulink that takes the speed from the translational sensor and gives accel...

3 mois ago | 0

| accepted

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

3 mois ago

Answered
4 Stroke Diesel Engine Simulation
Hello Augustine One option is to use the engine block from simscape driveline https://se.mathworks.com/help/physmod/sdl/ref/...

3 mois ago | 0

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

3 mois ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

3 mois ago

Solved


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

3 mois ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

3 mois ago

Answered
Simscape: Revolute joint block includes degree of freedom of other revolute joints in the assembly as its own degree of freedom?
Hi Joben If you want to make the joints passive, you should set: Actuation(none) - Motion (automatically computed). If actuat...

3 mois ago | 0

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

3 mois ago

Solved


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]

3 mois ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

3 mois ago

Answered
How to generate force AND velocity on an hydaulic cylinder in Simscape
Hello you need: Force sensor (cylinder) Velocity source (cylinder) Force source (wheel-axle > motor) Velocity sensor ...

4 mois ago | 0

Answered
Making an active revolute joint passive during simulation
Hello Amir I think the joint will be set to Torque (provided by input) and motion (automatically calculated). Then, when t...

4 mois ago | 0

| accepted

Solved


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

4 mois ago

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

4 mois ago

Solved


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

4 mois ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

4 mois ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4 mois ago

Solved


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

4 mois ago

Load more