필터 지우기
필터 지우기

The difference between semicolon and comma

조회 수: 195 (최근 30일)
engineerOfPhysics
engineerOfPhysics 2013년 3월 31일
Hi matlab community ,
I am working on let' s say a homework. I realized that during the homework, The representations one of them x=[1,2,3] and x=[1;2;3] are different. What is the different between them? I get a solution using both of them but different.

채택된 답변

Wayne King
Wayne King 2013년 3월 31일
x = [1,2,3];
creates a 1x3 row vector.
x = [1;2;3];
creates a 3x1 column vector
  댓글 수: 1
engineerOfPhysics
engineerOfPhysics 2013년 3월 31일
Well Why I get different result when I plot of sin(x) function ? between these values. ?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by