I want to compare two matrix A = ['dog', 'cat', 'rabbit'] (1×50 matrix) to a B= 1×2000 matrix which has repetition of elements of A. I want to calculate the frequency of each word ofA in B and plot histograms. strcmp fxn isnot working, i tried others also, please help me with this!! I have assignment submission on thursday 9 feb,2017 please help!!

# MATLAB: Compare two vectors having text data

string comparisonvector

###### Related Question

- How to calculate error between two matrices of different dimensions
- How to write a program to investigate whether a number belongs to matrix
- Random distribution row number
- Comparing elements of two matrices
- Finding positions and comparing two arrays
- Compare matrix and vector: for each cell in the matrix, get the index in the vector corresponding to the value in the cell.
- Comparing two matrix for similar matrix

## Best Answer