Writing a percentage sign in early days of MATLAB

2 views (last 30 days)
To write a percentage sign has it always been %% or in the early days of MATLAB was it /%? If you have a source or link to documentation that would be great. Google turned up nothing.
  2 Comments
Joseph Cheng
Joseph Cheng on 31 Mar 2014
Edited: Joseph Cheng on 31 Mar 2014
Where are you writing your % sign? GUI, plot text, etc?
dpb
dpb on 31 Mar 2014
How early is "early"?
I've been using since V3 and don't recall anything else...I think I did finally toss the manuals, though. I had an earlier version but was doing embedded systems in Forth then so wasn't using Matlab at that time so couldn't say with any certainty at all about before the Windows release that I did use quite a bit.

Sign in to comment.

Answers (1)

John
John on 4 Apr 2014
Where are you writing your % sign? GUI, plot text, etc?
The command line in general so using stuff like fprintf and sprintf.
How early is "early"?
I've been using since V3 and don't recall anything else...I think I did finally toss the manuals, though. I had an earlier version but was doing embedded systems in Forth then so wasn't using Matlab at that time so couldn't say with any certainty at all about before the Windows release that I did use quite a bit.
That is early enough! Thanks for the answer! I guess it always has been that way after all.
  2 Comments
dpb
dpb on 4 Apr 2014
The "\" is the escape character for TeX but I don't believe '%' is reserved there, is it? So my response was for formatting strings which I'm sure have always been that way as it is C-Standard which is where that (abominable) syntax comes from...
Walter Roberson
Walter Roberson on 4 Apr 2014
In formatting such as fprintf() I would be surprised if it was ever \% as the formats are clearly derived from C and C has always used %%

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!