How to generate data
조회 수: 19 (최근 30일)
이전 댓글 표시
Dear experts,
I need help to generate the data for the following situation.
I want to generate data for x in the range of 0 to 5 with the interval of 0.01. For each x there is y in the range of 0 to 3 in the interval of 0.01. After that I want to make two columns of x and y.
Kindly help.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Jos (10584)
2019년 3월 7일
I suggest you read parts of the starters manual and the help, and start exploring matlab :-)
help linspace
help colon
x = 1:2:5
f = 3/5
y = f .* x
댓글 수: 2
Jos (10584)
2019년 3월 7일
help reshape
help transpose
Is there a relationship between a value of x and a value of y, like a formula?
참고 항목
카테고리
Help Center 및 File Exchange에서 Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!