Question
hello. how can I upload this data file as a table and as a string array to matlab. without using the import data command. we have to import it with creating a script.
PLANAR - CD se 1 HECO 1. en evenec Chrome 11100 B ARCENY-LARINY LARCINY DAMAGEDAMAGE DAMAGE MARCENTUARY ARCENT 323 19 H 1.9 1
2303 2307 2019 1201 2019 1201 1102 2019 U E 1 Crime ID Report Incident Offense F G H I 2 offense C Charge DeOffense State Off
0 0
Add a comment Improve this question Transcribed image text
Answer #1

%% as a table
MyTable = readtable('MyFile.xlsx','Sheet','Sheet1')

%% as array
[onlyNumbers, onlyText, allCombined] = xlsread('MyFile.xlsx','Sheet1')

_______________________________________________________________

INPUT: MyFile.xlsx

A C D someData1 someData2 someData3 someData4 1 abc efg hij 123 2 abc efg hij 456 3 abc efg hij 789 4 efg abc 1122 hij 5 abc

RESULTS:

Command Window MyTable someData1 someData2 someData3 someData4 efg hij abc 123 hij efg Labc 456 abc hij efg 789 efg abc

Command Window onlyNumbers 123 456 789 1122 1455 1788 2121 2454 2787 3120 3453 3786 4119 4452 4785 5118 5451 5784

Command Window onlyText = someData4 someData3. someData2 someDatal hij efq abc hij efg abc hij efg abc hij efg

allCombined someData4. someData3 someData2 someDatal hij 1231 efg abc 456 hij efg abc hij 789 efg abc hij 1122 ef


------------------------------------------------------------------------------
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER,

IF YOU'RE SATISFIED, GIVE A THUMBS UP
~yc~

Add a comment
Know the answer?
Add Answer to:
hello. how can I upload this data file as a table and as a string array...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT