필터 지우기
필터 지우기

Simulink: Randomize connections between blocks (connect blocks randomly)

조회 수: 1 (최근 30일)
Timur
Timur 2013년 3월 4일
Hi,
In my model I have two springs attached to each other. Force (signal) is applied to one of the springs. Both springs reacting on the force, since they are connected - output of the first spring connected to the input of second spring, as well as output of second spring connected to the input of first one)
.
What I need is to have 40 springs randomly connected to each other.
I can copy "spring module" 40 times, but is there a way to randomize connections between them in Simulink? Is there any other way to perform this task?
Thank you

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 3월 4일
You could write a MATLAB function to randomize the connections. Connections can be made with add_line in a MATLAB function.
  댓글 수: 1
Timur
Timur 2013년 3월 8일
Hi, thank you for your reply, it seems it should work. Would you please suggest what should I put in MATLAB function, I have small experience using it. Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by