Rank: 1168 based on 135 downloads (last 30 days) and 2 files submitted
photo

Adi Navve

E-mail
Company/University
CByond Ltd.

Personal Profile:

B.Sc in Bio-Medical Engineering (Fluid dynamics, Multidisciplinary Engineering)


 

Watch this Author's files

 

Files Posted by Adi Navve View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Nov 2014 Screenshot Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve function inputs, struct2vars, pack, unpack, multiple inputs, potw 104 14
  • 5.0
5.0 | 9 ratings
06 Jul 2011 Screenshot imshow with True Size for multiple images imshowTruesize plots series of images in a single figure while preserving the actual aspect ratio Author: Adi Navve imshow, truesize, multiple scale, plot images, aspect ratio, true size 31 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Adi Navve View all
Updated File Comments Rating
07 Dec 2011 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve

Hi Christian,
It seems you have stumbled upon a name collision issue combined with the issue that Matlab treats calling a command differently whether it is from the command line or within a function. I assume you have a function called 'sigma' in your Matlab's path. I did not find such function in my system so it could be a function you've created or a built-in function if you have toolboxes that I don't have or a different Matlab version. Try using 'which sigma' to find out details on sigma or better yet 'edit sigma' to edit the function. When I write a code I try to follow the practice of naming variables with a case specific name so to avoid collisions with function names or even other variables in my code.
I could also suggest a practice I've recently began using which helps me in debugging and sorting out issues such as this. I added the line 'dbstop if error' in the startup.m file so whenever an error is encountered during a run the debugger breaks in the line of the error. In your case the debugger would have stopped in a new window of the 'sigma' function.
I hope this helps. Cheers.

06 Nov 2011 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve

Hi Per,
Thank you. Regarding your questions, first, I can think of several ways to extract variables from a struct array. They differ in complexity, both in the implementation in the code and the functionality. Could you elaborate how you would like to use this?
Second, I written a simple function to do this and I will upload it shortly. I would send a link to it here once it is published.

12 Sep 2011 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve

Thank you Vesa for your suggestion. I've just uploaded an updated version with your suggestion included. It will be available in a few days.

18 Aug 2011 Replace strings in text file REPLACEINFILE replaces characters in ASCII file using PERL Author: Pekka Kumpulainen

Works great.
Just one suggestion, in case of calling the function with filenames without a full path the call fails if these files are not in the system path. How about adding support to this case by identifying it and building the path using "which" function?
Thanks for the submission.

16 Aug 2011 explorer.m: Quick access to the Windows Explorer Opens the Windows Explorer for a specified directory, optionally showing the folder hierarchy Author: Malcolm Wood

I found this after I have thought of creating one myself and indeed it is convenient.
I have a suggestion - include the switch "/select" in the command line to get: 1) the file or directory is selected for convenience. 2) you can call explorer.exe with a full file name path since the file would not be opened.
In addition, I added the switch "/e" also for the default case to open the windows explorer with its default view.
Thanks for the submission.

Comments and Ratings on Adi Navve's Files View all
Updated File Comment by Comments Rating
01 Aug 2014 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve Andras

I encountered the exact same name collision problem that Christian Dorion mentioned in his comment below. If I unpack a structure in a function, and one of the resulting variable names is also a function name (it was "ngrid" in my case), then Matlab interprets the variable name as a function call. The strangest think is that if I do a "who" or "which" within the function, then Matlab correctly reports that ngrid is a variable. But then it fails to interpret it correctly. I have a very hard time coming up with an explanation for this behavior. Anyone?

01 Aug 2014 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve Andras

Works like a charm! Kudos for the very good documentation.

30 Apr 2014 imshow with True Size for multiple images imshowTruesize plots series of images in a single figure while preserving the actual aspect ratio Author: Adi Navve Elysi Cochin

sir is it possible to give title above the images? If yes how to do it?

23 Dec 2012 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve Jeff

18 May 2012 Pack & Unpack variables to & from structures with enhanced functionality v2struct packs and unpacks variables to and from structures with enhanced functionality. Author: Adi Navve Jeff

Contact us