필터 지우기
필터 지우기

How to connect 3 variables logically?

조회 수: 1 (최근 30일)
GettinStarted
GettinStarted 2020년 7월 4일
댓글: GettinStarted 2020년 7월 4일
Hello Community,
I'm pretty sure my issue isn't that hard to figure out... nonethless I don't get it.
Let's say I do have a lenght L which consists of Lenght l1 and Lenght l2 of equally lenght.
The lenght L1 and L2 are used for a loop in the script. So I want to type in L=2 and the result should automatically be: l1=1 and l2=1
Thanks in adance.

채택된 답변

madhan ravi
madhan ravi 2020년 7월 4일
L = 2;
[L1, L2] = deal(L / 2)
  댓글 수: 1
GettinStarted
GettinStarted 2020년 7월 4일
Hello madhan ravi,
thank you very much! deal :D

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by