Rank: 1264 based on 91 downloads (last 30 days) and 5 files submitted
photo

Grant Lohsen

E-mail
Company/University
Georgia Tech Research Institute

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Grant View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Nov 2012 Audio Equalizer Modify an input signal to match a given power spectral density. Author: Grant Lohsen nsd, psd, audio equalizer, fft, ifft, spectral shaping 23 0
18 May 2012 stlwrite - Write binary or ascii STL file This is an update to the excellent work done by Sven Holcombe to add color support Author: Grant Lohsen data export, data import, mesh, patch, stl, surface 26 3
  • 3.0
3.0 | 2 ratings
18 May 2012 Binary STL file reader Update of the stlread function by Francis Esmonde-White to properly implement color reading. Author: Grant Lohsen 3d models, binary, cad, data export, data import, faces 19 0
15 Jun 2011 Merge Structures Merges two structures of equal sizes. Author: Grant Lohsen structure, struct, merge, join, struct array 8 0
15 Apr 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen tdms, convert, gtri, lohsen 15 13
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Grant View all
Updated File Comments Rating
23 May 2014 ConvertTDMS (v10) Import or convert a LabView TDMS file into the MATLAB workspace or a mat file Author: Brad Humphreys

Need to update the ConvertVer variable.

also, need replace line 427 with this

else
fclose(fid);

error('Unable to find TDSm tag. This may not be a tdms file, or you forgot to add the .tdms extension to the filename and are reading the wrong file');

end

this way if you typo the name and feed it a large non tdms file it wont sit there forever searching the file 4 bytes at a time for the TDSm tag

22 Apr 2011 Model3d MATLAB class for reading, viewing 3D dxf and 3ds files. Author: Steven Michael

I can't get this to run on windows. I get the error "??? Undefined function or method 'model3d' for input arguments of type 'char'". I noticed that this includes .mexglx files, and i believe this is linux files. Does anyone have the mexw64 files so I can run this? alternatively, is there a free compiler I can put on my system to compile this?

Matlab R2008b

16 Apr 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen

I think the group functions may not be working properly. If you experience any problems with it let me know. I am trying to determine if there is an error in it.

15 Apr 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen

Mark,
The original file this is based off of (written by Brad Humphreys of ZIN Technologies) supported V1.0 of TDMS, mine supports V1.2. I haven't written one to support v1.1 and have not seen any documentation of the format (v1.2 has format specs online). I hard coded the version restriction so that it would only run on supported version (1.1 is 4712 and 1.2 is 4713).

I may add support for v1.1 in the future but it will be after i incorporate the upcoming v1.2 enhancements to speed and support of comment data.
-Grant

06 Apr 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen

This file is about to face a major update so comments will be supported in imports. Just FYI to check back inside of ~1-2 months (when I get time to update it)

Comments and Ratings on Grant's Files View all
Updated File Comment by Comments Rating
17 Mar 2014 stlwrite - Write binary or ascii STL file This is an update to the excellent work done by Sven Holcombe to add color support Author: Grant Lohsen Clark, Thomas

Immediate bug using the STLWRITE(FILE,FACES,VERTICES) syntax:

'Attempted to access facecolor(:,1); index out of bounds because size(facecolor)=[0,0]'

Unfortunately, the options parsing code is pretty dense (much denser than it need be, I think) so rather than debug it myself, I'm shifting back to Sven's code.

Grant, you may find this submission useful; its a very convenient and robust way of options parsing:
http://www.mathworks.com/matlabcentral/fileexchange/9082-parsepvpairs

04 Jul 2013 stlwrite - Write binary or ascii STL file This is an update to the excellent work done by Sven Holcombe to add color support Author: Grant Lohsen Sven

Hi Chris, just a note that the stlwrite on which this file is based has facecolor implemented properly.

03 Jul 2013 stlwrite - Write binary or ascii STL file This is an update to the excellent work done by Sven Holcombe to add color support Author: Grant Lohsen Rorden, Chris

This is a useful tool. Unfortunately, Grant's new version has a small bug, which you can elicit by running "Example 1" from the help. To fix this bug, change the line
if isfield(options, 'facecolor')
to read
if isfield(options, 'facecolor') && (length(options.facecolor) > 0)

13 Jul 2012 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen Patel, Hari

I tried to read .tdms file(300MB) generated by LabVIEW SignalExpress and I got following error:

10:09:05 Begining conversion of: C:\work\Matlab workspace\Signal Express data\07112012_030159_PM\convertTDMS (1)\Digital_Input.tdms
??? Error using ==> fread
Invalid precision.

Error in ==> convertTDMS at 257
propsValue=fread(fid,1,matType);

Any suggestions?

22 Sep 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant Lohsen Robert

Version 7 of this function was posted 20 SEP 10 (File ID #28771)

Contact us