i have matriks
A1 = [1 2 3 4 5 6 7 8] A2 = [9 10 11 12 13 14 15 16] . . . . An = [.........]
i want to display them
F = [A1,A2,..., An]
so the results obtained
F = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... An]

댓글 수: 1

Image Analyst
Image Analyst 2015년 10월 28일
You know n, right? You must. If not, explain why n might vary.

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

 채택된 답변

Roger
Roger 2015년 10월 28일

0 개 추천

A = [A1 A2 ... An];% do not use ","

댓글 수: 2

Diaz Diesel
Diaz Diesel 2015년 10월 28일
how can i load its into A = [A1 A2 ...An]?
Image Analyst
Image Analyst 2015년 10월 28일
That's nonsense. You certainly can use a comma to horizontally append row vectors, in fact the lint in the code editor will recommend that you use commas rather than spaces. The code Diaz gave for F will work, given that n is known so that you know the names of all the arrays.

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

추가 답변 (0개)

카테고리

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

태그

질문:

2015년 10월 28일

댓글:

2015년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by