[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56458] Octave closes on its own when I run my
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #56458] Octave closes on its own when I run my script. |
Date: |
Fri, 7 Jun 2019 23:05:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?56458>
Summary: Octave closes on its own when I run my script.
Project: GNU Octave
Submitted by: None
Submitted on: Sat 08 Jun 2019 03:05:12 AM UTC
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Segfault, Bus Error, etc.
Status: None
Assigned to: None
Originator Name: Elías Urquiza
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
Ok so this script basically loads some transfer functions and then plots their
responses to a generated signal. It also compares their responses with
simulated data points from a txt file.
It didn't crash until I started using gnuplot and started adding legends.
clc
clear all;
close all;
cargar_transf_ideal
cargar_transf_normal
leido=dlmread('escalon_sim.txt',',');
graphics_toolkit("gnuplot");
t_step_sim=leido(1:end,1);
y_step_sim=leido(1:end,2);
Hf = figure();
Ha = axes;
W = 10; %Ancho página (va bien con 8-10)
H = 5; %Altura página (va bien con 5)
set(Hf,'PaperUnits','inches','PaperPosition',[0 0 W H]);
set(Ha,'Box','on','FontName','Arial','FontSize',10,'GridLineStyle','--','LineWidth',1);
title('Respuesta al Escalon')
xlabel('Tiempo[s]')
ylabel('V_{Out}[V]')
grid on;
grid minor on;
hold on;
plot(Ha, t_step_ideal, y_step_ideal, "linewidth", 5, '-k');
plot(Ha, t_step_normal, y_step_normal, "linewidth", 4, '-or',"markersize",6,
"markerfacecolor", 'w', "markeredgecolor", 'w');
plot(Ha, t_step_sim, y_step_sim, "linewidth", 2, '--b');
axis([0 0.006 -0.2 0.4]);
l_ideal=sprintf("Respuesta Ideal: h_0=1; w_0=3958.5 s^(-1); f_0=630.02 Hz; Q =
2.1432.");
Hleg = legend(Ha,l_ideal, "location", 'northeast');
legend('boxon');
set(Hleg,'FontName','Arial','FontSize',10);
print('test.png','-dpng','-r1000'); % Exportar Graf.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 08 Jun 2019 03:05:12 AM UTC Name: cargar_transf_ideal.m Size: 311B
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=47053>
-------------------------------------------------------
Date: Sat 08 Jun 2019 03:05:12 AM UTC Name: cargar_transf_normal.m Size:
1KiB By: None
<http://savannah.gnu.org/bugs/download.php?file_id=47054>
-------------------------------------------------------
Date: Sat 08 Jun 2019 03:05:12 AM UTC Name: escalon_sim.txt Size: 13KiB
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=47055>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56458>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56458] Octave closes on its own when I run my script.,
anonymous <=