01-23-2008 04:14 AM
function matice()
% Funkce ma za ukol cvicne operace s maticemi
clear all;
close all;
clc;
for j = 1:10
tic
for i = 1:5
A = randn(1000, 1000);
B = randn(1, 1000);
C = A * A;
D = B * A;
E = A + 2 * A + 3 * A;
F = B * B';
end
toc
end
01-25-2008 01:39 AM
A difference of a factor of 4 or 5 is not that big and is probably caused by the fact that mathscript is implemented on top of LabVIEW. The two methods are well within an single order of magnitude. No big deal!
For additional information, read e.g. the following posts:
http://forums.ni.com/ni/board/message?board.id=MathScript&view=by_date_ascending&message.id=105#M105
Maybe you should also do your algorithm in pure LabVIEW to see how it compares. 😉
01-25-2008 02:14 AM - edited 01-25-2008 02:15 AM
01-25-2008 08:52 AM
01-25-2008 08:53 AM
01-25-2008 08:54 AM
01-25-2008 09:27 AM
01-25-2008 09:54 AM
11-13-2017 03:25 AM
Hi could we have your feedback regarding the improvement you did ?
Thanks, BR
ELP
11-14-2017 01:59 PM
Hi ELP,
WOW! How could someone get to this 9 years old post? 🙂
Honestly, I don't already remember all the changes I did to my original concept. But hey, on the link below there is a thesis. It's in Czech but at the end of the document there are some attachments with the code. But one more note. Since I played with this MathScript baby 9 years ago a lot might have changed! Since then, I never had a chance to use MathScript again.
https://www.vutbr.cz/www_base/zav_prace_soubor_verejne.php?file_id=7236