print matlab output string to xlsx spreadsheet
Afficher commentaires plus anciens
Hi everyone please help.
I have read number of responses from here, and some youtube videos but my problem seem to be a bit different.
I am trying to print license_plate string (cl12ml23) to excell spread sheet. the license prints each character in its own cell and I want it printed to one cell. Sometimes the code comes with this error when I am trying book examples " Error using <a href="matlab:matlab.internal.language...' identifier: 'MATLAB:xlswrite:dlmwrite' " below is my code portion
% results.Text
license_plate = results.Text
drvLicNum = randi([1000000 10000000],1,1) % Generating number for drivers license number
drvStore = drvLicNum;
string = license_plate + drvLicNum;
fprintf('%s', string)
%Export to Excel option
%load license_plate.mat
license_plate = license_plate(~isspace(license_plate)) %eliminate spaces in betwwen characters
%filename = 'C:\Users\Makhosi\\Project\data.xlsx';
ca = {license_plate};
%A = [string]; %working
%xlswrite(filename,ca);
xlswrite('C:\Users\Computer_Vision_in_Quality_Control\Project\data.xlsx',ca);
I would appreciate if I can be shown where to go to get help with this. you can also contact me on 820400516@student.uj.ac.za.
I thank you in advance
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!