I have some problems with using pseudocode in Latex. After I build the file =0 is added at the end of the file. Any suggestion how can I fix that?
Thank you for your answer in advance.
\State \textbf{Input parameters}
\State ComSub: \textit{matrix of all videos in our subset of LDOD-CoMoDa research dataset (videos ID and coordiantes)}
\State n: \textit{number of items that are being looking for}
\State \textbf{Output parameters}
\State nIDs: \textit{vector of IDs of the selected items}\\
\vspace{0.1cm}
\begin{algorithmic}[1]
\State Randomly select n videos from the ComSub subset (using function \textit{rand} in Matlab).
\end{algorithmic}
\end{algorithm}
The output is:
.
.
1: Randomly select n videos from the ComSub subset (using function rand
in Matlab). =0
\documentclass{article}
%\usepackage{algorithm,algcompatible}
\usepackage{algpseudocode}
\usepackage{caption}
\DeclareCaptionType{algorithm}
\begin{document}
\begin{algorithm}
\caption{getInitialItems}\label{IniA}
\begin{algorithmic}[1]
\State \textbf{Input parameters}
\State ComSub: \textit{matrix of all videos in our subset of LDOD-CoMoDa research dataset (videos ID and coordiantes)}
\State n: \textit{number of items that are being looking for}
\State \textbf{Output parameters}
\State nIDs: \textit{vector of IDs of the selected items}\\
\State Randomly select n videos from the ComSub subset (using function \textit{rand} in Matlab).
\end{algorithmic}
\end{algorithm}
\end{document}