I have 1x14 char output
A = ' 3691/1784 '
What I want to get is
P = 3691
Q = 1784
I have tried the following as explained in another answer here:Specify decimal separator for .dat file in matlab
output=str2double(strrep(P,'/','.'))
But the output is 3612.1784.
Any help will be highly appreciated.