Home > Objects > @iData > intersect.m

# iFit/intersect

## PURPOSE [ai,bi] = intersect(a, b) : computes object intersection area and values

## SYNOPSIS function [ai,bi] = intersect(a, b)

## DESCRIPTION ``` [ai,bi] = intersect(a, b) : computes object intersection area and values

@iData/intersect function to intersect axes data sets
This function computes the common intersection between data sets
Resulting objects are returned, e.g. for performing further operations
ai = intersect(a) where 'a' is an object array computes intersection of all elements

input:  a: object or array (iData)
b: object (iData)
output: ai: object or array (iData)
bi: object or array (iData)
ex:     b=intersect(a, a);

Version: Nov. 26, 2018

## CROSS-REFERENCE INFORMATION This function calls:
• end b = end(s,index,n) : end value for iData objects
• getaxis [val, lab] = getaxis(s, AxisIndex) : get iData axis value and label
• iData
• interp [b...] = interp(s, ...) : interpolate iData object
• intersect [ai,bi] = intersect(a, b) : computes object intersection area and values
• isequal c = isequal(a,b) : full numerical equality comparison of iData objects
• ndims d = ndims(s) : get the dimensionality of iData object
• zeros s = zeros(s,N,M,P,...) : initialize an iData array
This function is called by:
• corrcoef c = corrcoef(a,b) : correlation coefficient with an iData object
• intersect [ai,bi] = intersect(a, b) : computes object intersection area and values
• linspace v = linspace(a,b,n) : creates a linearly spaced vector of objects
• logspace v = logspace(a,b,n) : creates a logarithmically spaced vector of objects
• max [m,id] = max(a,b, dim) : computes the maximum value of iData object(s)
• min [m,id] = min(a,b, dim) : computes the maximum value of iData object(s)

Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1
{"ft_lang_label":"__label__en","ft_lang_prob":0.61370486,"math_prob":0.9865987,"size":1278,"snap":"2022-27-2022-33","text_gpt3_token_len":371,"char_repetition_ratio":0.17582418,"word_repetition_ratio":0.21078432,"special_character_ratio":0.29107982,"punctuation_ratio":0.22097379,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.998696,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-01T14:38:10Z\",\"WARC-Record-ID\":\"<urn:uuid:154c4ac8-9c95-4764-a71b-9e09196a0366>\",\"Content-Length\":\"5419\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:77c2d4cb-d88b-4650-a26d-476be59718ef>\",\"WARC-Concurrent-To\":\"<urn:uuid:2a78e5ab-69f7-49a8-a658-f33005cbf37d>\",\"WARC-IP-Address\":\"130.226.56.251\",\"WARC-Target-URI\":\"http://ifit.mccode.org/techdoc/Objects/@iData/intersect.html\",\"WARC-Payload-Digest\":\"sha1:ZUSVVPXPITCX5WZAFKZXA2SFK2CMKJYA\",\"WARC-Block-Digest\":\"sha1:WRRPVWJFRNT32PXQWMGI2XG7PP6N3RDK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103941562.52_warc_CC-MAIN-20220701125452-20220701155452-00589.warc.gz\"}"}