About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 38
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Florian Dignath
See full specifications

scripts default iconfprintf_r - Carriage Return without Linefeed (Scripts) Publisher's description

Matlab function for doing a carriage return (without linefeed!) followed by some output using fprintf

Matlab function for doing a carriage return (without linefeed!) followed by some output using fprintf.

This is useful, e.g. to replace the display of a counter i in the style:
fprintf('r %f',i), because the r format is not working properly on windows systems.

Input is a string s and a variable x which are forwarded to the fprintf command as fprintf(s,x). Use a vector for x in case you want to display several variables at once.

In the first call of this function, nothing else is done. Starting with the second call, the corresponding number of backspaces is inserted before executing fprintf(s,x), so the output starts at the place it would have started without the first fprintf command.

If 'reset' is given as the 3rd argument, the script deals with s and x as in the first call of the function.

If 'reset' is given as the 1st and only argument, the next call will be treated as a "first" call, again.

fprintf_r(s, x[, 'reset']) or

for i = 1:110
fprintf_r('%i', i);

N.B: This function is not necessary on UNIX systems, as r is working fine there.

System Requirements:

MATLAB 7.4 (R2007a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

fprintf_r - Carriage Return without Linefeed (Scripts) Tags:

Click on a tag to find related softwares

Is fprintf_r - Carriage Return without Linefeed (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.