File: updatevtps.sci

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (16 lines) | stat: -rw-r--r-- 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function [vtps_n,vnms_n]=updatevtps(nv_old,vtps_n,vtps_1,vnms_n,vnms_1)
//add new variables
// Copyright INRIA
for k=nv_old+1:size(vtps_1)
  if find(vnms_1(k,1)==vnms_n(:,1))==[] then
    vnms_n=[vnms_n;vnms_1(k,:)]
    vtps_n($+1)=vtps_1(k)
  end
end
for k=1:min(size(vtps_n) , size(vtps_1))
  for l=1:3 
    if vtps_n(k)(l)<>vtps_1(k)(l) then
      vtps_n(k)(l)='?'
    end
  end
end