Construct an array a (in column form) made of 17 (equally-spaced) values between 17 and 289.

 채택된 답변

Amit
Amit 2014년 1월 25일

0 개 추천

A = (linspace(17,289,17))';

댓글 수: 3

Ian
Ian 2014년 1월 25일
Pefect! Thanks!
A = linspace(17,289,17)'
Amit
Amit 2014년 1월 25일
The extra brackets are just habit, due to few times issue with 1:10' and (1:10)'!

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

추가 답변 (1개)

Mischa Kim
Mischa Kim 2014년 1월 25일
편집: Mischa Kim 2014년 1월 25일

0 개 추천

Use
c = linspace(17, 289, 19)
This results in 19 data points, including the two end points, 17 and 289. To switch between row and column vector simply use the "prime"
c'

카테고리

도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

질문:

Ian
2014년 1월 25일

댓글:

2014년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by