\usetikzlibrary{positioning}
\begin{center}
%\fbox{
\begin{tikzpicture}
\begin{scope}[
box1/.style={draw=black, thick, rectangle,rounded corners, minimum height=0.75cm, minimum width=0.75cm}]
\draw[black,dashed,fill=red!30] (-.5,-3.2) rectangle (3.2,.5);
\node[box1, fill=green!30] (c1) {};
\node[box1, fill=green!30, right=.125cm of c1] (c2) {};
\node[box1, fill=green!30, right=.125cm of c2] (c3) {};
\node[box1, fill=green!30, right=.125cm of c3] (c4) {};
\node[box1, fill=green!30, below=.125cm of c4] (c5) {};
\node[box1, fill=green!30, left=.125cm of c5] (c6) {};
\node[box1, fill=green!30, left=.125cm of c6] (c7) {};
\node[box1, fill=green!30, left=.125cm of c7] (c8) {};
\node[box1, fill=green!30, below=.125cm of c8] (c9) {};
\node[box1, fill=green!30, right=.125cm of c9] (c10) {};
\node[box1, fill=green!30, right=.125cm of c10] (c11) {};
\node[box1, fill=green!30, right=.125cm of c11] (c12) {};
\node[box1, fill=green!30, below=.125cm of c12] (c13) {};
\node[box1, fill=green!30, left=.125cm of c13] (c14) {};
\node[box1, fill=green!30, left=.125cm of c14] (c15) {};
\node[box1, fill=green!30, left=.125cm of c15] (c15) {};
\end{scope}
\end{tikzpicture}
%}
\end{center}

set(gca,'Xtick',1:1:sim_len)
به این منظور کد بالا را بعد از فراخوانی تابع plot قرار دهید.
نماد پریم رو هم میتونین با دستور \prime بنویسین و هم با علامت تک کوتیشن کنار کلید اینتر. فرقی نمیکنه، منتها تفاوتشون اینه که وقتی از دستور \prime استفاده میکنید باید حتما علامت توان (^) رو براش بذارین اما تک کوتیشن (') دیگه قبلش علامت توان نمیخواد. تو عکس، تفاوتشون کاملا مشخصه. توی خط اول دوتا روش کاملاً معادل هستن و از هر کدوم استفاده کنید درسته.

یک تابع که باهاش میتونید اندیس کاربرایی که برای هر کاربر ایجاد تداخل میکنند رو بدست بیارید.
function int_users_matrix = FindInterferingUsers(N_users) %% int_users_matrix = FindInterferingUsers(N_users) % this function find indices of interfering users for each user % INPUT : N_users(scalar) % OUTPUT : int_users_matrix(N_users * (N_users-1)) all_users = 1:1:N_users; % vector of all user indices int_users_matrix = meshgrid(all_users).'; % indices of interfering users for each user int_users_matrix(1:N_users+1:N_users^2) = []; int_users_matrix = reshape(int_users_matrix, N_users-1, N_users).'; end
مثال:
>> FindInterferingUsers(5)
ans =
2 3 4 5
1 3 4 5
1 2 4 5
1 2 3 5
1 2 3 4
>>
ملاحظه میکنید که در هر سطر اندیس کاربرانی که برای کاربر متناظر با شماره سطر ایجاد تداخل میکنه مشخص شده:)
به این منظور میتوانید از دستور \stackrel{}{} استفاده کنید. مثلاً:
\documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
%% Or a small wrapper: \newcommand{\approxtext}[1]{\ensuremath{\stackrel{\text{#1}}{\approx}}}.
\newcommand{\approxtext}[1]{\ensuremath{\stackrel{\text{#1}}{\approx}}}
\begin{document}
$\displaystyle
A \stackrel{\text{text}}{\approx} B
$,
$\displaystyle
A \approxtext{test} B
$
\end{document}
داریم:

الگوریتم تکرار نقطه ثابت یک الگوریتم کارا برای یافتن صفر معادلات پیچیده و غیرخطی است.