How to display dictionary elements along with their frequency
Show older comments
I m trying to display the dictionary elements and their frequency on the same line.
I have got the frequency using TMG.Both can be displayed independently.
How to display them together.?????
I tried this-
dictionary(A(:,1),:)
and
disp(['dictionary = ' num2str(dictionary(:,:))])
3 Comments
Walter Roberson
on 29 Oct 2012
What variables are involved in this matter, and what information do they hold in which order?
What is "A" ? What is "dictionary" ?
Tripti Malviya
on 5 Jan 2013
Please post simply some code, which creates the variables, as e.g.:
A = {'a', [0,0,0,5]; 'b', [3,0,0,0]}
or:
dictonary = {'a', 'b', 'c', 'd'};
A = [0,0,0,5; 3,0,0,0; 0,0,0,0; 0,0,0,5];
or how your data look like. Expressions like "dictionary=(a,b,c,d)" or "A=(2,1)=3" are clear to you, but as long as this is no valid Matlab syntax, we could only guess what this means exactly.
Answers (0)
Categories
Find more on Dictionaries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!