Writing a percentage sign in early days of MATLAB
2 views (last 30 days)
Show older comments
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
on 31 Mar 2014
Edited: Joseph Cheng
on 31 Mar 2014
Where are you writing your % sign? GUI, plot text, etc?
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.
Answers (1)
John
on 4 Apr 2014
2 Comments
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
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 %%
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!