MATLAB: Automatic detection of relations between workspace variables through functions

Posted by Peterstone on Stack Overflow See other posts from Stack Overflow or by Peterstone
Published on 2011-01-06T05:54:07Z Indexed on 2011/01/06 8:54 UTC
Read the original article Hit count: 241

Hi all, I´m trying to write a function what detect this relation between the variables I have got in the workspace:

v1 - fft(v2) = 0

Where v1, v2 are variables of my workspace. Sometimes I need to know which variables have a certain numerical relation. If I have thirty, I don´t want to be looking for this relation in "manual way", just itroducing a sentence for each pair of different variables. I would like a function in which I introuce (or I modify this function every time I need it) the sentence (for instance what I wrote before) and the function show me the pair of variables a I am looking for. Does anyone know how to do it? Thank you so much!

© Stack Overflow or respective owner

Related posts about function

Related posts about variables