Commit fc4e9e80 authored by Farid Alijani's avatar Farid Alijani
Browse files

changes applied

parent 8ee97a0a
......@@ -276,7 +276,8 @@ end
vec_row(counter + 1) = i_G;
vec_col(counter + 1) = j_G;
figure;
set(gcf,'color','white');
plot(vec_col(1),vec_row(1),'ro','LineWidth',4);
hold on;
......@@ -285,7 +286,7 @@ hold on;
plot(vec_col(size(vec_col,2)),vec_row(size(vec_row,2)),'ko','LineWidth',4)
axis([0 row + 1 0 col + 1]);
grid on
title('Grid');
title('Virtual Grid for Q-Learinig');
ylabel('$ index_{\theta_{mar}} $','interpreter','latex','FontSize',17);
xlabel('$ index_{y_{mar}}$','interpreter','latex','FontSize',17);
l = legend('${Start}$','${\alpha = 0.1 , \gamma = 0.8}$','${Goal}$','Orientation','Horizontal');
......
// Author : Farid Alijani
// Q_learning with reward distribution...
// for further sample codes, please visit my GitHub page...
// ----- How to Compile and run c++ file in Ubuntu ------ //
// In a terminal, go to directory that your c++ file exsist and To compile your c++ code, :
g++ -o output Q_learing.cpp
#include <stdio.h>
#include <iostream>
#include <iomanip>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment