Info

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

how to specify plotting axises in simulink?

조회 수: 1 (최근 30일)
Fatma Abdullah
Fatma Abdullah 2017년 11월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
i have this code generated in "Matlab function" block in simulink:
if true
function pfa1 = fcn(c,p,t)
T=0:0.5:32
pfa1=exp(-(T.*t./p).^(c/2))
end
end
now when i use the "scope" block it automatically plots "pfa1" against "t" -t is set to be the time-, i want to plot "pfa1" against "T" how can i do that?
I've used the "XY" plotting block and set T to be an output alongside with pfa1 and used them both as inputs for XY block but i got dimension error
  댓글 수: 2
Birdman
Birdman 2017년 11월 21일
what are inputs c,p,t and their sizes?
Fatma Abdullah
Fatma Abdullah 2017년 11월 21일
they are constants be "constant" block
c=2 p=1 and t is the time which is represented by "clock" block

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by