Concatenación
Version 1.0.0 (1.44 KB) by
Diego Buitrago P
Reconocimiento especial a Alejandro Ramirez. Universidad Nacional de Colombia sede Manizales.
% Diego Buitrago Paternina
% Ingeniero Mecatrónico
% Programador La Dorada Caldas Colombia.
clc
clear all
close all
% Concatenamos los datos.
inicio=1; % Se asigna valor 1.
t=6; % Se asigna valor 6.
iter=[]; % Vector o matriz para las iteraciones.
t2=17840; % Valor máximo de t2.
vector_tiempo=zeros(1,t); % vector ceros en el tiempo para las iteraciones.
vector_tiempo(1)=inicio; % Número donde empieza las iteraciones
cont=1; % Se asigna valor 1.
cont2=1; % Se asigna valor 1.
vectordef1=[]; % Vector o matriz para las iteraciones y llenado de números.
fin=0; % Se asigna valor de 0.
% Ciclo While para las iteraciones:
while cont2<=t2
vector_tiempo=zeros(1,t); % Vector tiempo inicial de zeros en aumento.
cont=1; % Se asigna valor de 1.
while cont+fin<=(cont2*t)
vector_tiempo(cont)=cont+fin; % Contador del vector tiempo.
cont=cont+1; % Sumatoria del contador.
end
fin=vector_tiempo(t); % fin de las iteraciones.
vectordef1=vertcat(vectordef1,vector_tiempo); % Se guarda las iteraciones en el vectordef.
cont2=cont2+1;
end
Cite As
Diego Buitrago P (2025). Concatenación (https://in.mathworks.com/matlabcentral/fileexchange/114770-concatenacion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |