Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.333.058 Times

Pointers and subscript pointers 1.0

  Date Added: June 21, 2013  |  Visits: 304

Pointers and subscript pointers

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



The hnum class is a handle to a value class (uint8, double, etc). It acts like a pointer, but isn't really a pointer. Operating on an hnum class does not require "x = x + 1". Using "x+1" will permanantly modify it's value. Copying an hnum object only creates a copy to it's handle, and doesn't copy it's data. In the example "y = x", if x changes, y also changes.There are two subscripting modes for the hnum class. The default is 'normal'. In the normal mode, "a = x(1:3)" returns a value, not a handle. In the 'pointer' mode, "a = x(1:3)" returns a pointer to the first threeelements of x. This is a subscripthandle class. Modifying 'a' modifies the elements of 'x' that 'a' points to.Some things to tryx = hnum(magic(5),'pointer') %a magic square that returns pointers when subscripteda = x(5:7) %Creates a pointer to part of xa(:) = sin(a) %This changes some values of x. note: a = sin(a) returns a doublea(1:end) = 500 %Subscripting subscript handles is also validMost of the functions of both classes were generated using a macro function. This was done to save time, as there are 100+ functions to overload. Because of this, not all functions allow as many inputs as their builtin versions. Some of the builtin functions were left out because they needed more than 2 inputs. See the two files in the 'Macro' directory for more information.Watch out for memory leaks. Always delete an hnum object before replacing it.x = hnum(1)a = x(a)x = 5 % This does not delete what 'x' used to be. Use delete(x) before.a % 'a' keeps the previous x in memory even though you can't access it.

Requirements: No special requirements
Platforms: Matlab
Keyword: 1002b Function Generated Inputs Macro Overload
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


POINTERS AND SUBSCRIPT POINTERS RELATED
Development Tools  -  Winsorize data 1.0
Function WINSOR inputs data vector x and 2*1 vector of cut-off percentiles p, and replaces non-NaN values of x that are below percentile p(1) with the smallest remaining value, and x-values above percentile p(2) with the largest remaining value....
10 KB  
Multimedia  -  Matlab Animation Demo 1.0
A simple animation demonstration using drawnow.trigonometric function generated background .
10 KB  
Multimedia  -  Example: GUIDE ButtonDownFcn Callback 1.0
This is a GUIDE generated GUI.The GUI executes a callback function when a mouse is clicked over a figure.Inspired by the reference below:[ref] http://www.mathworks.com/matlabcentral/new...w_thread/160626
10 KB  
Development Tools  -  Fibonacci Search metho 1.0
This script provides the final interval of uncertainty in which the minima of single variable non linear/linear function. The function should be unimodal in the interval. The script checks the unimodality of the function.User inputs the initial...
10 KB  
Development Tools  -  Fibonacci Search method 1.0
This script provides the final interval of uncertainty in which the minima of single variable non linear/linear function. The function should be unimodal in the interval. The script checks the unimodality of the function.User inputs the initial...
10 KB  
Development Tools  -  Bootstrap a statistic in a grouped sample 1.0
Function BSTRAG builds on an earlier FEX submission, BSTRAP - itself an extension of BOOTSTRP (Statistics Toolbox, v. 5-6) - by implementing 'groupwise' operation, wherein rows of x (,y,z,..) are split into several groups (having n1, n2, n3, .....
40.96 KB  
Development Tools  -  bbtest 1.0
The homogeneity of variances test is a useful tool in many scientific applications. Boos and Brownie (2004) and Conover et al. (1981) give a broad review.Here, we developed an m-file as an alternative to the homogeinity of variances test...
10 KB  
Utilities  -  Recover Excel Sheet 2.5
MS Excel is a spread sheet application and save records. There are many in built function such as macro, chart, diagram, pivot table etc. that you can use very easily. It knows a novice user can easily understand at the very first time. That’s...
1.28 MB  
Development Tools  -  NeoClassic Growth Model in Dynamic Economic Theory 1.0
Demonstration of Neoclassic Growth Model in Dynamic Economics, deterministic model, using both discrete optimization and interpolation method. Utility function and production function defined seperately. Generate plot to show the Policy function...
10 KB  
Development Tools  -  Simulation of Color Noise 1.0
The function essentially simulates the colored noise which essentially is a correlated process and unlike the white noise does not have flat PSD. Although white noise is a realistic process color noise seems more practical and hence it requires...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB