array concatenation problem in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Samriddhi Kumari
il 27 Giu 2021
Commentato: Shivani Dixit
il 7 Lug 2021
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 Commenti
Risposta accettata
Shivani Dixit
il 27 Giu 2021
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 Commenti
Shivani Dixit
il 7 Lug 2021
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!