Less stdout at octave

This commit is contained in:
ha7ilm 2017-03-04 19:17:11 +01:00
parent 818b6b1157
commit e1d4a4ff3b
2 changed files with 6 additions and 6 deletions

4
csdr.c
View file

@ -2357,8 +2357,8 @@ int main(int argc, char *argv[])
{
if(argc<=2) return badsyntax("need required parameter (algorithm)");
timing_recovery_algorithm_t algorithm = timing_recovery_get_algorithm_from_string(argv[2]);
/* if(algorithm == TIMING_RECOVERY_ALGORITHM_DEFAULT) */
fprintf(stderr,"timing_recovery_cc: algorithm = %s\n",timing_recovery_get_string_from_algorithm(algorithm));
if(algorithm == TIMING_RECOVERY_ALGORITHM_DEFAULT)
fprintf(stderr,"#timing_recovery_cc: algorithm = %s\n",timing_recovery_get_string_from_algorithm(algorithm));
if(argc<=3) return badsyntax("need required parameter (decimation factor)");
int decimation;
sscanf(argv[3],"%d",&decimation);

View file

@ -1646,11 +1646,11 @@ void pll_cc(pll_t* p, complexf* input, float* output_dphase, complexf* output_nc
void octave_plot_point_on_cplxsig(complexf* signal, int signal_size, int points_size, ...)
{
fprintf(stderr, "N = %d\nisig = [", signal_size);
fprintf(stderr, "N = %d;\nisig = [", signal_size);
for(int i=0;i<signal_size;i++) fprintf(stderr, "%f ", iof(signal,i));
fprintf(stderr, "]\nqsig = [");
fprintf(stderr, "];\nqsig = [");
for(int i=0;i<signal_size;i++) fprintf(stderr, "%f ", qof(signal,i));
fprintf(stderr, "]\nzsig = [0:N-1]\nplot3(isig,zsig,qsig,\"b-\",");
fprintf(stderr, "];\nzsig = [0:N-1];\nplot3(isig,zsig,qsig,\"b-\",");
int point_z;
int point_color;
va_list vl;
@ -1662,7 +1662,7 @@ void octave_plot_point_on_cplxsig(complexf* signal, int signal_size, int points_
fprintf(stderr, "[%f],[%d],[%f],\"%c.\"%c", iof(signal, point_z), point_z, qof(signal, point_z), (char)point_color&0xff, (i<points_size-1)?',':' ');
}
va_end(vl);
fprintf(stderr, ")\n");
fprintf(stderr, ");\n");
fflush(stderr);
}