You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: timeStepIteration.m
    path of file: ./repos/ONSAS/src/core
    
    the code of the file until where you have to start completion: % Copyright 2023, ONSAS Authors (see documentation)
%
% This file is part of ONSAS.
%
% ONSAS is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
%
    
function [ Udottp1, Udotdottp1, nextTime ] = updateTime(Ut, Udott, Udotdott, Uk, analysisSettings, currTime )

  nextTime   = currTime + analysisSettings.deltaT                     ;

  if strcmp( analysisSettings.methodName, 'newmark') || strcmp( analysisSettings.methodName, 'alphaHHT' )

    deltaT = analysisSettings.deltaT ;

    if strcmp( analysisSettings.methodName, 'alphaHHT' )
      alphaHHT = analysisSettings.alphaHHT ;
      deltaNM  = (1-2*alphaHHT)/2 ;
      alphaNM  = (1-alphaHHT)^2/4 ;
    else
      deltaNM  = analysisSettings.deltaNM ;
      alphaNM  = analysisSettings.alphaNM ;
    end