How to fill a table using (end,:)

Hello everyone!
I have a table for example A=[2,11,33;41,25,92;11,20,14] and i want to add a new row in the end.Something like that:
A(end+1,:)=...?
My problem is that i don't know how to syntax the right part..
Thanks.

댓글 수: 1

Jan
Jan 2011년 12월 7일
You know the syntax for a [3 x 3] matrix, as we see in your question. Now your need the syntax for a [1 x 3] vector.
This is a very basic question and I stronlgy suggest to read the Getting Started chapters in the documentation.

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

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 12월 7일

0 개 추천

A=[2,11,33;41,25,92;11,20,14]
% e.g.
A(end+1,:)= rand(1,size(A,2))
or
A(end+1,:)= [3 5 6]
ets.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2011년 12월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by