What code or command allows me to know from a final value, which vector originated or produced that final value?

I have an "rguard" vector composed of 20 sub-vectors, of 10 elements each. Choosing a vector of 10 elements, I pass it to a shift and I get 10 vectors of 10 elements each. Later that vector introduced it to a formula and I get a vectro "SLL1" 10 values, a value per vector of 10 elements, later these values (10) I introduce them to another formula and I get 10 probability values. The question is: What code or command allows me to know from that probability value, which vector originated or produced?

4 Comments

An example with dummy values using valid matlab syntax would help greatly in understand what you have. What is a vector composed of sub-vectors? Do you mean a vector cell array? e.g:
rguard = {[1 2 3], [4 5 6], [7 8 9]} %vector of 3 subvectors of 3 elements?
I agree that an example is needed. About all I can suggest from the confusing explanation you gave so far is to use ismember() or isequal() to try to find if and where some vector matches another vector.
Huh? A totally confusing question, and not even about MATLAB at all. Likely that means Ricardo is also totally confused, as the inability to pose a clear, cogent question tends to imply the person asking really does not understand the problem.
Sometimes the issue is the asker does understand what they are asking, but for some reason they have tried to make the question too abstract, but just made it confusing as hell.
If you have assigned probabilities to each vector that imply the probability a result originated from that vector, then you choose the one with maximum probability. WTP?
help max
What you are asking for is not generally possible, and when possible is not generally practical (consider for example asking which input combinations "cause" a particular output bit in AES-256 cryptography). It might be possible for some code, but that could only be known by having the code available and tracing the values back through.
Sometimes a workable approach is to use the Symbolic Toolbox to pass a vector or matrix of symbolic values through the code, and then the output would be symbolic formula instead of numeric values; examining the formulas can show you which part of the input go into making up a particular output.

Sign in to comment.

Answers (1)

I hope to explain myself better. From a probability value obtained, how to know which part of the vector: "vectors1" comes from.

Categories

Find more on Just for fun in Help Center and File Exchange

Asked:

on 15 Jan 2018

Edited:

on 15 Jan 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!