필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can keep attributes as a vector while simulation proceed ?

조회 수: 1 (최근 30일)
ozcan
ozcan 2014년 1월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,I study manufacturing systems simulation and optimization.
All entities takes attributes like as Pt (process time)and I want to keep previous attribute values in a vector matrice. After this I will send Vector matrice to matlab embeded function block. How can do that ?
Second 1 Pt=2.3 Vector=[2.3]
Second 2 Pt=3.1 Vector=[2.3 3.1]
Second 3 Pt=2.7 Vector=[2.3 3.1 2.7]
.
.
Second n .......................................

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 10일
편집: Azzi Abdelmalek 2014년 1월 10일
Pt=2.3
Vector=Pt
Pt=3.1
Vector=[Vector Pt]
Pt=2.7
Vector=[Vector Pt]
Or
Pt=2.3
Vector(1)=Pt
Pt=3.1
Vector(2)=Pt
Pt=2.7
Vector(3)=Pt
  댓글 수: 1
ozcan
ozcan 2014년 1월 10일
I try this in attribute function block but it dosn't work. out_Vector=[out_Vector Pt] error is; out_vector has same inital value =[1 Pt] it has only two value every time

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by