i am having a column vector of length 60000. i have to split it into 10 parts. so it becomes 10 column vectors and i have to use box plot for each column vectors.
i know the box plot function but how do i split my vector?

 채택된 답변

Star Strider
Star Strider 2015년 11월 5일

0 개 추천

If ‘V’ is your (60000x1) vector, this works:
V = [1:60000]';
Vs = reshape(V, [], 10);

댓글 수: 4

Hi in the above command, is this ' a typo?
v = [1:60000]';
Star Strider
Star Strider 2015년 11월 5일
No typo. I use square brackets to denote arrays. The complex conjugate transpose operator (') (which for real values is the same as the simple transpose operator (.')) converts the vector ‘V’ from a default row vector to a column vector, as required by your Question. The ‘Vs’ matrix is your vector, split into its 10 columns.
Heartrin
Heartrin 2015년 11월 5일
oh ok. mine is already a column vector so no problem. thank you so much.
Star Strider
Star Strider 2015년 11월 5일
My pleasure.
I had to create a column vector to test my code, so it would work without error in your application.

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

추가 답변 (0개)

카테고리

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

태그

질문:

2015년 11월 5일

댓글:

2015년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by