[~,~,CG(:,1)]=unique(Y) - is it possible to do this in Mathcad?
This is a programming made in matlab I am interested in knowing how this would be done in mathcad more than anything [~,~,CG(:,1)]=unique(Y); this operation, is it possible to do this in mathcad?
%
CG=zeros(nod,3);
%-----------Main Coordinates------------------------------------ --------------------------------------
[~,~,CG( :,1)]=unique(Y);%index of unique values in Y
CG( :,1)=CG(:,1)-ones(assent, 1);
ngl=max(CG(:,1));
%----------Secondary Coordinates------------------------------------- --------------- --------------- --------------- ----- -
CG2=zeros(2,nod-nr);
for i=1:(nod-nr)*2
ngl=ngl+1;
CG2(i)=ngl;
final
CG(nr+1:size(CG,1),2:3)=CG2';
return
Translated by Andra Chirila using Google Translate on March 23rd, 2023
-----------------------------------------------------------------------------------------------
Esta es una programacion hecha en matlab me interesa saber como se haria esto en mathcad mas que todo [~,~,CG(:,1)]=unique(Y); esta operacion, es posible hacer esto en mathcad?
%
CG=ceros(nod,3);
%-----------Coordenadas Principales---------------------------------------------------- ------- ------- -------
[~,~,CG( :,1)]=único(Y);%índice de valores únicos en Y
CG( :,1)=CG(:,1)-unos(asentimiento, 1);
ngl=máx(CG(:,1));
%----------Coordenadas Secundarias---------------------------------------------------- --------------- --------------- ------
CG2=ceros(2,nod-nr);
para i=1:(nod-nr)*2
ngl=ngl+1;
CG2(i)=ngl;
final
CG(nr+1:tamaño(CG,1),2:3)=CG2';
devolver

