What is the new syntax of flops(0) and qp() in Matlab 2014?
Show older comments
I am running an old Matlab code, i.e., Version 5, and it seems some of the syntaxes have been changed in the newer versions of Matlab. I have Matlab 2014 and Want to know what is the new syntax for the code flops.
First I have some problems about flaps command which seems to be removed from newer version. So what I have as a code about it is bellow, Just the necessary parts are posted, Please tell me how can I modify it for running on new Matlab.
flops(0) % and few lines after
initial_flops = flops;
Flop = [Flop, flops];
fprintf(' Number of flops in initial calculations: %i\n\n',initial_flops);
disp(' beta #flops(in K) ')
disp(Flop_report)
net_flops
Also, I would like to know was qp() an old function in Matlab 5? If yes what is its alternative in New versions of Matlab?
Accepted Answer
More Answers (1)
Star Strider
on 30 Jan 2015
0 votes
2 Comments
Jamais avenir
on 30 Jan 2015
Star Strider
on 30 Jan 2015
Edited: Star Strider
on 30 Jan 2015
I’m not certain what the flops function was doing in your code. (I don’t remember ever using it when it was available.) Your ‘Flops’ variable seems to be keeping track of the individual instances. I would experiment with the example in the cputime documentation to see how that best fits with your code. All the documentation on flops has vanished, so I can’t say how best to use cputime in its place.
I can’t find anything at all on whatever ‘qn’ is. I don’t ever remember having heard of it. It may be a user function that should be part of whatever scripts you’re using.
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!