so i've tried to plot this funtion multiple times using every trick i can come up with and the loop still only goes through the first ifelse statement in the function file. here is a copy of my function file:
using this file I try to plot in my main file which is:
elseif 4<=x<=5 ;
the first three lines are just a reference header and do not impact the problem. I don't know if the loop fails in the for loop or in the ifelse on the function file.
delete g228x07.txt; diary g228x07.txt
clear; clc; close all; echo on
% Gilat 228/7
echo off; diary off