Question

matlab parpool too slow to open

Hi Why does parpool take so long to open, especially on windows? On linux it opens fast within a minute, but in windows 10 it t...

3 months ago | 0 answers | 0

Question

How to set run-time parameter for all simscape(/multibody) blocks in a file?

I just realised, by default all simscape (/multibody) blocks' parameters are compile time meaning any changes to any of the bloc...

3 months ago | 1 answer | 0

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

6 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

6 months ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

6 months ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

6 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

6 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

6 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

7 months ago

Solved

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

7 months ago

Answered

How can I avoid transferring all the workspace variables to the workers when using 'parsim'?

here is complete solution which worked well for me This is not restricted to parsim but in general to transfer variables to wor...

How can I avoid transferring all the workspace variables to the workers when using 'parsim'?

here is complete solution which worked well for me This is not restricted to parsim but in general to transfer variables to wor...

10 months ago | 0

Question

pass non-numeric data to simulink

i want to evaluate a dlnetwork object in simulink. output of dlnetwork (type casted to double) will drive other blocks i have u...

10 months ago | 0 answers | 1

Submitted

slider crank mechanism

This is a simple implementation of slider-crank mechanism in simscape multibody

11 months ago | 11 downloads |

Answered

Simulation of a rolling wheel on a flat surface using SimMechanics contact forces library block

hi, i have faced this issue before and approximated using sphere to plane contact (from Mr Steve Miller's contact force library...

Simulation of a rolling wheel on a flat surface using SimMechanics contact forces library block

hi, i have faced this issue before and approximated using sphere to plane contact (from Mr Steve Miller's contact force library...

11 months ago | 0

Answered

Multiple 2D plot in 1 3D plot

use waterfall command example Nactions = 5; Ntime = 5; x = (1:Nactions); % actions y = (1:Ntime); % time [X,Y] = meshgrid(...

Multiple 2D plot in 1 3D plot

use waterfall command example Nactions = 5; Ntime = 5; x = (1:Nactions); % actions y = (1:Ntime); % time [X,Y] = meshgrid(...

1 year ago | 0

Answered

Multiple 2-D area plots in a 3-D graph

use watefall command it does exactly same as what you want Nactions = 5; Ntime = 5; x = (1:Nactions); % actions y = (1:Nt...

Multiple 2-D area plots in a 3-D graph

use watefall command it does exactly same as what you want Nactions = 5; Ntime = 5; x = (1:Nactions); % actions y = (1:Nt...

1 year ago | 1

Answered

Plotting Multiple Graphs in a 3D form

use waterfall command. customisations available for it

Plotting Multiple Graphs in a 3D form

use waterfall command. customisations available for it

1 year ago | 0

Answered

Run one step of a simulink model, switch to an m-file, calculate, switch back to the model, run model with new calculated data. (Step wise Simulink execution)

check this Save and Restore Simulation Operating Point

Run one step of a simulink model, switch to an m-file, calculate, switch back to the model, run model with new calculated data. (Step wise Simulink execution)

check this Save and Restore Simulation Operating Point

1 year ago | 0

Answered

One-Step a Simulink Simulation from the MATLAB command line

check this Save and Restore Simulation Operating Point

One-Step a Simulink Simulation from the MATLAB command line

check this Save and Restore Simulation Operating Point

1 year ago | 0

Question

how to use GPU for actor and critic while env simulation happens on multiple cores for RL training

hi i am new to GPU computing. i am using reinforcement learning toolbox - particularly rlACAgent training happens normally on...

1 year ago | 1 answer | 0

Answered

Reinforcement Learning - How to use a 'trained policy' as a 'controller' block in SIMULINK

hi use reshape block to set observation vector to column vector before feeding to matlab interpreter block

Reinforcement Learning - How to use a 'trained policy' as a 'controller' block in SIMULINK

hi use reshape block to set observation vector to column vector before feeding to matlab interpreter block

1 year ago | 0

Answered

How to solve this equation with ode45?

yes, you are right, you should split equations function dydt = ode45fcn(t,y) p = 2.67; a = 0.25; ag = 0.5*sin(4*pi*t); % ...

How to solve this equation with ode45?

yes, you are right, you should split equations function dydt = ode45fcn(t,y) p = 2.67; a = 0.25; ag = 0.5*sin(4*pi*t); % ...

1 year ago | 1

Answered

Transfer function G(s) with plot or data

hi you could use np = 2; % number of poles nz = 1; % number of zeros exp_data = readmatrix('data.csv'); %read data u = exp...

Transfer function G(s) with plot or data

hi you could use np = 2; % number of poles nz = 1; % number of zeros exp_data = readmatrix('data.csv'); %read data u = exp...

1 year ago | 0

Question

how to import fmu from AMESim to Simulink?

can anybody help in import in FMUs (functional mockup units) from AMESim to Simulink? i created a simple fmu interface in AMESi...

1 year ago | 1 answer | 0