how can I plot y = (cos(t-2)/4)(rect(t+1)/6 )?
조회 수: 3 (최근 30일)
이전 댓글 표시
y = [(1-cos(0.25*(t-2).^2))*rect(t+1,6)]
is it correct way to write tht code ?
댓글 수: 1
Jan
2022년 8월 3일
편집: Jan
2022년 8월 3일
The brackets [ and ] are the concatenation operator in Matlab. What do you concatenate?
The shown code does not allow to plot anything, so how could it be correct?
What is "rect"? Why do you convert "rect(t+1)/6" to "rect(t+1,6)" ?
"cos(t-2)/4" differs from "1-cos(0.25*(t-2).^2)" also. Very strange.
답변 (2개)
Adam Danz
2022년 8월 3일
is it correct way to write tht code ?
The line of code looks functional without knowing any other details including what rect is.
how can I plot y = (cos(t-2)/4)(rect(t+1)/6 )?
Define t, compute y, and plot(t,y)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!