array concatenation problem in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I add up on array without using concatenation or inbuilt function in matlab? I just want to combine the values in array.
댓글 수: 0
채택된 답변
Shivani Dixit
2021년 6월 27일
Assuming any inbuilt function should not be used, you can add up one array to other by the following method :
% assume this to be your initial array
x=[1 2 3]
% now suppose a new value is to be added i.e 4
x=[x 4]
This method concatenates values to the array without using any inbuilt function in matlab.
댓글 수: 3
Shivani Dixit
2021년 7월 7일
A good catch , but as per the query , i assume that in this context, built-in means not to use any ready-made functions that concatenates the array.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!