Search Comments and Ratings

go

   
Date File Comment by Comment Rating
11 Dec 2014 Surface Intersection Intersection of two triangulated surfaces Author: Jaroslaw Tuszynski Thien Tran

Excellent work. Thanks

31 Oct 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Leonardo

Thanks Jaroslaw, a very good tool!

I'm just having some troubles with newline (\n) serialization in text elements.

I'd like to write an xml like:
<root>
<p>This is a multiline
text.</p>
</root>

using

root.p = sprintf('This is a multiline\ntext.');

xml_write('multilinetext.xml', root)

but the var2str function implementation substitute all chars < 32 with ' '.
Keeping char(10) i.e. LF should allow this king of textual content.

Is this tool still under maintenance? A fix on this topic would be very useful.

Thanks in advance

29 Oct 2014 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Jeffrey

I'm having trouble with the many rays, many faces option. Lets say I have 11 faces and 5 rays. What resizing of the inputs needs to be done? Do I need to repmat all arrays to be of size 55x3?

Based on what I can tell it can handle:
- one ray, many faces
- many rays, one face
- many rays, many faces (but # of faces = # of rays)

But I think I am just missing something here.

15 Oct 2014 Inscribed_Rectangle Computer vision functions to locate largest square or rectangle inscribed inside arbitrary shape Author: Jaroslaw Tuszynski Zoé

The code produces an incorrect result if the input is an entirely white image. Changing line 25 of FindLargestRectangles.m into "if max(I(:)) == 1" appears to solve this problem.

26 Sep 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski qiqi

very good, but in my case, I get an OutOfMemoryError while dealing with 5.37m data. It seems too small

19 Sep 2014 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Jaroslaw Tuszynski

Reply to Nick: In many rays and many triangle case you still test for intersection of prearranged pairs and the return value informs you which ray/triangle pair intersected

28 Aug 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Michael Haderlein

28 Aug 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Michael Haderlein

25 Aug 2014 PhotonAttenuation 2 Provides the attenuation and energy absorption of x-ray and gamma-ray photons in various materials. Author: Jaroslaw Tuszynski William Heindl

12 Aug 2014 csv2struct reads Excel's files stored in .csv or .xls file formats and stores results as a struct Author: Jaroslaw Tuszynski Andrew

22 Jul 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Yodit

hi I am new to matlab, I was trying to chnage an xml file(which is too large it looks like this:
Result_Matrix =

[ 46686]
[ 4]
'f'
[1x2987899 char ]
[1x1 struct]

but I am interested in having the data [1x2987899 char ] part in (4x46686)matrix format. Can someone please explain how I can do that. Thank you in advance.

08 Jul 2014 Inscribed_Rectangle Computer vision functions to locate largest square or rectangle inscribed inside arbitrary shape Author: Jaroslaw Tuszynski Peter Seibold

24 Mar 2014 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Nick

Very useful but when considering many rays and many triangles is there a way to find which ray has intersected which triangle?

24 Mar 2014 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Nick

17 Mar 2014 PhotonAttenuation 2 Provides the attenuation and energy absorption of x-ray and gamma-ray photons in various materials. Author: Jaroslaw Tuszynski Yi

Beautiful work!
Why when I run the PhotonAttenuation_Tutorial.m directly, it will display the error information as:
"
Error: File: PhotonAttenuation.m Line: 192 Column: 3
"mu" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable.
A possible cause of this error is that you forgot to initialize the
variable, or you have initialized it implicitly using load or eval.

Error in test_YZ (line 10)
mac = PhotonAttenuation(Z, E, 'mac');
"

13 Mar 2014 rdir_dos Recursive directory listing using DOS DIR command Author: Jaroslaw Tuszynski Eric Sampson

Pretty good, although the %s in the following string really needs to be wrapped in double-quotes in case the directory/filename to be searched contains spaces: cmd_str = sprintf('dir %s /s/-c/4', rootdir);

06 Feb 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski JY Su

No doubt the best tool package ever!
However, is there any possibility to improve the speed of xml_write ?? It takes almost 200 sec to write a 50 mb xml file for me. Please help. Sincerely,

05 Feb 2014 colAUC Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix. Author: Jaroslaw Tuszynski Lee

I'm sorry but it is not clear how to get multiclass auc if I have Y as the true label of 1...c classes and Yest as 1...c column vector with predictive score for each instance belong to certain class. The output auc is a c x c x(c-1)/2 combination in your case, take mean(auc) returns c auc values.

31 Jan 2014 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski craq

Excellent submission! I just managed to reproduce Mohinder's error (No static serializeXML method with appropriate signature exists in Java class com.mathworks.xml.XMLUtils). In my case it was caused by trying to run xmlwrite instead of xml_write.

15 Jan 2014 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Jaroslaw Tuszynski

Reply to Bruce:
I had the same problem lately after upgrading to 64-bit computer and installing 64-bit MATLAB. Apparently my MS Office was 32-bit and neither this toolbox nor MATLAB Database Toolbox was able to work with it. I solved the problem by uninstalling 32-bit office and reinstalling 64-bit version.

21 Nov 2013 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Bruce

Has anyone got this to work with an access2010 on a 64 bit system? Recently upgraded from 32 to 64 and can no longer connect to my access DBs.

15 Oct 2013 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Bruce

Problem solved... Keywords are a pain :-)

14 Oct 2013 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Bruce

Mostly great. But just tried a query that works in access itself, but fails with "Error using COM.ADODB_Connection/Execute
Invoke Error, Dispatch Exception: Unspecified error" when executed with adodb_query(sql)

Any thoughts on how to figure out what went wrong?

18 Sep 2013 PhotonAttenuation 2 Provides the attenuation and energy absorption of x-ray and gamma-ray photons in various materials. Author: Jaroslaw Tuszynski Muthu Annamalai

28 Aug 2013 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Amilcar Torres

Excellent.. Really helpful!!!

16 Aug 2013 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Matthew

AWESOME!!

13 Aug 2013 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Anders Bergåker

Brilliant product, saved me a lot of time.

It create a really neat struct that is easy to navigate. And the gen_object_display.m script that shows the struct was invaluable when reading xml-files from other sources.

I had some issues with the error-reports (catch-statements)when using xml_read. Changing the debug varaible (line 89) to true removed the issue.

05 Aug 2013 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski craq

02 Aug 2013 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Fábio Nery

28 Jun 2013 csv2struct reads Excel's files stored in .csv or .xls file formats and stores results as a struct Author: Jaroslaw Tuszynski chang hsiung

can this be used in Mac ?

12 Apr 2013 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Ben

Looks great. Downloaded and will try it later.

22 Feb 2013 Inscribed_Rectangle Computer vision functions to locate largest square or rectangle inscribed inside arbitrary shape Author: Jaroslaw Tuszynski Alize

21 Dec 2012 csv2struct reads Excel's files stored in .csv or .xls file formats and stores results as a struct Author: Jaroslaw Tuszynski Thai

Great code.
Thanks

07 Dec 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Marcin

04 Dec 2012 csv2struct reads Excel's files stored in .csv or .xls file formats and stores results as a struct Author: Jaroslaw Tuszynski Michael

Awesome script! CSV only works for me if i have a header with more than one character.

26 Nov 2012 colAUC Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix. Author: Jaroslaw Tuszynski Jaroslaw Tuszynski

Reply to JR King: See new version

13 Nov 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Abhijit Das

13 Nov 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Abhijit Das

22 Oct 2012 colAUC Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix. Author: Jaroslaw Tuszynski JR King

Thanks a lot, very useful.

I would remove the absolute computation: ( auc = 0.5 + abs(0.5-auc);) as it is indicative of the effect direction which is necessary for most statistical analyses.

22 Oct 2012 colAUC Calculates Area under ROC curve (AUC) for a vector or for each column of a matrix. Author: Jaroslaw Tuszynski JR King

06 Oct 2012 Triangle/Ray Intersection Fast vectorized triangle/ray intersection algorithm Author: Jaroslaw Tuszynski Jaroslaw Tuszynski

Re to Anton Semechko: This is a low level function which can be called with one ray and many faces, many faces and one ray or many faces and rays. It is quite simple to apply repmat function to the inputs.

25 Sep 2012 csv2struct reads Excel's files stored in .csv or .xls file formats and stores results as a struct Author: Jaroslaw Tuszynski Jeff Barton

Just what I was looking for. Thank you.

11 Sep 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski nan

Works beautifully with several versions of Matlab; I really love the way it handles comments, too.

I wanted to suppress some of the terminal output, since I use large xml files and generally am only interested in small sections in any one program. There's an easy way to get around that, but since it took me awhile to find it, I'll share it:

t=evalc('[mystruct tree] = xml_read(cfgfile);');
if ~isempty(t)
disp(t);
end

07 Sep 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Arash

It is an amazing tool. I really appreciate your time to write such a great thing. It rocks man.

Just in case that can be useful for somebody else: I wanted to read my xml file as structure into MATLAB and then, change some data in that structure and finally, write back the structure into new xml file. But I had the problem and it was that the configuration of input xml file was different from output xml file configuration even if I didn't touch structure. What you should do to avoid this problem is doing following:

var = xml_read ('my_file.xml');

work with "var" and change whatever you want.

wPref.StructItem = false;
xml_write('my_file_new.xml', var, 'XXX',wPref);

I got "my_file_new.xml" with the same structure and configuration of "my_file.xml".

07 Sep 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Arash

17 Jul 2012 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Dan Golding

Fantastic tool, simple and fast!

10 May 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Gerard Sanromà

It works great.
Thanks for the tool !

24 Apr 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Zohar Bar-Yehuda

11 Apr 2012 adodb_tools Adodb_tools allow communication with different types of databases through ADO OLEDB component. Author: Jaroslaw Tuszynski Dennis

11 Mar 2012 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski Joshua

Jaroslaw,

This xml_io_tool is very useful for me. But I have found some problems.

Here is a PVG810.xml. I read it and rewrite it again, the attributs of xml file is sorted alphabetically.

% MATLAB 2011B
% Read xml firstly.
[tree rootname domnode]= xml_read('PVG810.xml')

% Write xml again.
Pref.StructItem = 'false';
xml_write(tree, rootname, domnode,Pref.StructItem);

The initial:
<PVG810 BuildVersion = "1000"
TableVersion = "2000"
HeaderVersion = "1"
.... >

After writting:

<PVG810 ADCResolution = "18"
ADCTempOffset = "0"
ADCVref= "19"
BulidVersion = "1000"
.... >

How is happened. How can I take it?

Contact us