Create Header with write matrix function

285 次查看(过去 30 天)
I have exported some data into a CSV file in from Matlab (144 x 4 matrix)
At the top of each column I would like to add a title. I have tried a few things but won't work. For my basic code I am just using
writematrix(MTR_data,'MTR_Stats.csv')
How would I implement my 4 titles for each column?
Thanks
Dave :)

采纳的回答

Voss
Voss 2022-6-20
编辑:Voss 2022-6-20
Random data and titles:
MTR_data = rand(144,4);
MTR_titles = {'Put' 'Your' 'Titles' 'Here'};
You can make the data into a cell array, combine it with the titles, and use writecell:
C = [MTR_titles; num2cell(MTR_data)]
C = 145×4 cell array
{'Put' } {'Your' } {'Titles'} {'Here' } {[0.9198]} {[0.4213]} {[0.7598]} {[0.7774]} {[0.6349]} {[0.3410]} {[0.9730]} {[0.0560]} {[0.7675]} {[0.5804]} {[0.6031]} {[0.9340]} {[0.6531]} {[0.1061]} {[0.1866]} {[0.1484]} {[0.3054]} {[0.8498]} {[0.1221]} {[0.3304]} {[0.2797]} {[0.9153]} {[0.5927]} {[0.7219]} {[0.3406]} {[0.5729]} {[0.7914]} {[0.0052]} {[0.5921]} {[0.1686]} {[0.4413]} {[0.9439]} {[0.4935]} {[0.7938]} {[0.2370]} {[0.6005]} {[0.6570]} {[0.6249]} {[0.0124]} {[0.0720]} {[0.1116]} {[0.4532]} {[0.7132]} {[0.7048]} {[0.9891]} {[0.2733]} {[0.6865]} {[0.6431]} {[0.9328]} {[0.6782]} {[0.0147]} {[0.8288]} {[0.6263]} {[0.5069]} {[0.1308]} {[0.5941]} {[0.5269]} {[0.8219]} {[0.8424]} {[0.6381]}
writecell(C,'MTR_Stats.csv')
type MTR_Stats.csv % check the resulting file
Put,Your,Titles,Here 0.919816739840983,0.421303613769751,0.759817162601134,0.777426693704026 0.634928334832576,0.341047515169294,0.973044070816325,0.0560062806567507 0.767471933689978,0.580359241481747,0.603076613071578,0.934020944064525 0.653110850469829,0.106080100538248,0.186555838173526,0.148350159211899 0.305390155313031,0.84983340795178,0.122113455819318,0.330400175504986 0.279732226525231,0.915273551477254,0.592738104515426,0.721916977644425 0.340607821688769,0.572924312820764,0.791385530912617,0.00517387088606447 0.592131256516049,0.168637005237888,0.441258200991442,0.943868958813541 0.493481005132198,0.793816690917391,0.23695650260219,0.600494069067377 0.656986561924896,0.624880807046323,0.0123863252419982,0.0719648060821956 0.111592281730588,0.45317179040155,0.713209769079482,0.704791298728423 0.989142418744633,0.273301202319323,0.686454767412966,0.643067329905738 0.93280216834923,0.678233514927917,0.0147241363544669,0.828843977374923 0.626332320428332,0.506948110073749,0.13082002996426,0.594069731046949 0.526922703999678,0.821884577874562,0.842400976257025,0.638067743007247 0.782547418847665,0.344336817289847,0.1619767011493,0.344158400666431 0.681579783963068,0.578605016106214,0.7300340456581,0.0838744465071922 0.800119530425165,0.608993406172251,0.469840215168959,0.289086684135665 0.948843320536947,0.262133084434227,0.280023576334084,0.387288593101767 0.163979346001584,0.153747855046034,0.258453625633597,0.237129739777862 0.0229248247233608,0.506503540279412,0.63801903730813,0.987434064785063 0.453145851391225,0.605144321020758,0.776043356929239,0.913818318799266 0.326974244039088,0.578450567545838,0.820483969010584,0.375824228594754 0.679100096925369,0.391524852312409,0.400658924008658,0.104691538665573 0.602502913103671,0.473642149030353,0.725853007083212,0.634639467129512 0.182415272560104,0.0725332522590821,0.770210839581487,0.968125323753469 0.884852770905274,0.910551338052841,0.211161877353241,0.390897341619538 0.897888285431506,0.375178187317614,0.229217769965627,0.520599278255635 0.291583094741614,0.12681676768842,0.239095582856551,0.201466516961632 0.223759794714284,0.561674430316476,0.3822406683089,0.721807500680079 0.336708975752448,0.635089435099435,0.224039191837775,0.462789133335353 0.520824976545215,0.321342063647029,0.621616483582687,0.362877878503793 0.853865421521953,0.808422332289932,0.0152276851379303,0.898083733371654 0.098072007176864,0.248498823104421,0.180364027491892,0.130474362052732 0.762369669593317,0.979249902031827,0.133891557195809,0.422279502511169 0.642249807061342,0.192957198538228,0.0195258427026646,0.933501801555988 0.774176159075944,0.829106130472116,0.442846087188787,0.392229087670727 0.164612923879417,0.935459863619869,0.213191394602656,0.199817333784685 0.526945361053054,0.325731627468192,0.842485113860733,0.685294493025887 0.593509491508495,0.642484001604657,0.616470683781316,0.257434495969722 0.31102572808086,0.982316343372152,0.88982530637164,0.128081622802509 0.221170180437769,0.905472813979417,0.655173365482167,0.518145413687075 0.453322448862322,0.686914278618811,0.854954552484132,0.874882743724067 0.622078316654639,0.858545219906614,0.700199998161266,0.611668371093444 0.335839382613891,0.325419959729098,0.175950926344654,0.518699913274045 0.441193558611562,0.370138987154386,0.243230297712906,0.219011447775097 0.333796515457958,0.246246215712984,0.22435128150063,0.985225313228842 0.34005026506831,0.846094663865804,0.609134642465243,0.400346095370057 0.269083510320648,0.199181697662176,0.385788269936165,0.577312650141421 0.802589804941849,0.855557055708358,0.0449262779243029,0.280273929147313 0.908126540915313,0.320489767374525,0.150026048945188,0.526598120818594 0.367535906607366,0.842379532231421,0.312713148950476,0.78476726674341 0.589957289427444,0.892030583363248,0.308685681770252,0.586166770202917 0.656892982687029,0.263200838524495,0.602441093178684,0.877840715245218 0.456271533567803,0.195246554259233,0.245916013268546,0.262994069202925 0.644127420903375,0.00262951316562621,0.969028127986996,0.994787743148051 0.340955705137988,0.407353306289364,0.910487522389795,0.00318367460105162 0.277614254917644,0.366085322655802,0.651680949310444,0.128263876594631 0.11691919696277,0.3040895699098,0.608296643905489,0.010076670650157 0.434648851912199,0.978728921483795,0.984185575011198,0.860484198931048 0.540237460185843,0.275883975985545,0.0456378821385309,0.113516069408984 0.782617453861241,0.928135036801944,0.790872961606021,0.654480408898535 0.837513827853431,0.761132692056837,0.668714170746627,0.0514280393753048 0.425361734692999,0.580424078276963,0.581018764894655,0.834283303270741 0.947341142889693,0.488181737446419,0.312602832494323,0.478382550980795 0.671064231061287,0.103407488308815,0.647745074184289,0.483786639494128 0.833378452864356,0.93841981189372,0.627454991844894,0.820758076729875 0.629153524225804,0.130996671341679,0.746073621390753,0.328274253096862 0.830885054822047,0.416494530353166,0.197136783297998,0.369047612266376 0.276753156353163,0.77843430715336,0.558303738106787,0.767936674299458 0.62498042129806,0.890065129320451,0.520317973297207,0.173608849740198 0.874433637672657,0.134532236701315,0.995922276959028,0.238775423116515 0.915659815000774,0.802426901014789,0.0722634398535792,0.11988728938862 0.305445180624205,0.264693272355917,0.753540491113671,0.371577167802405 0.172669996287453,0.178968118817826,0.833356575677007,0.952947609524059 0.669301919862493,0.856222688537348,0.464069297962064,0.168791637863293 0.815542054708313,0.954727961516315,0.886508636317341,0.420729842535014 0.836760956164026,0.972260448640999,0.453041513862871,0.591672038506386 0.0572993251671277,0.928821439482689,0.126657864559712,0.639448273568393 0.620415014879977,0.0747654808266066,0.153132502047575,0.528484827083073 0.849509405626303,0.087012215875653,0.349572535431078,0.0618729674254114 0.250708116199245,0.108095531803798,0.28432909405915,0.929692218541707 0.6163646649027,0.708760919013449,0.482080612913454,0.710041293093846 0.314416372365899,0.0278436190974145,0.50908054604509,0.201740825284375 0.119297961853417,0.514738203179559,0.0541545495070463,0.271230684990221 0.520169739157245,0.327117195693627,0.405198196704057,0.248851465465588 0.0417996662564244,0.456042691176556,0.362110605709798,0.993569014170225 0.360719720946754,0.796671628404783,0.486724473285948,0.357106879219194 0.137347576767868,0.191694563343494,0.366793455457501,0.667101737066037 0.234197840023577,0.234886648046218,0.695598728162899,0.818847442132032 0.61002065223352,0.37462812343065,0.252155030126738,0.99684150440464 0.946514929203109,0.554537358680866,0.83463168130055,0.376695568866259 0.543658219106945,0.72326830157341,0.314711991903457,0.676834826382557 0.292548516433561,0.674404080419916,0.0131004839926121,0.406616594333173 0.529708799047719,0.0400037268743235,0.332905713439835,0.286556486334414 0.0777143139774261,0.416275753414981,0.840345192976578,0.174276129163666 0.573529448953683,0.728183375452088,0.00497519709522209,0.959650078435971 0.153818308402315,0.700416772559477,0.942724572930199,0.248301287169017 0.891304159677559,0.558235029414432,0.643009460316009,0.948868101044612 0.527060477325359,0.450629452071905,0.586893444465562,0.531566486280931 0.0923358065960249,0.853289775134398,0.816895156713907,0.872916288791887 0.626757142594659,0.21222392238645,0.838583154308274,0.0970827451007136 0.847266106831019,0.854491572910942,0.63293130535271,0.288443102352971 0.602307109346103,0.0549338900624426,0.974194108478752,0.22084863139956 0.079247589123428,0.266783105193183,0.493828688115951,0.626717570297793 0.17402960001263,0.675095247953478,0.2852725270909,0.513880789038833 0.0730282401876483,0.80091900542113,0.407861467744278,0.238283814403595 0.482257520431129,0.22302878424885,0.65270884022966,0.927456583570925 0.463778133446858,0.427960539670842,0.746395218026638,0.743343764269674 0.935597794273933,0.139204040250113,0.902470180263561,0.979503925562447 0.495924040162546,0.862922503156209,0.742816036703023,0.174460348837215 0.0282920970782732,0.110801908700677,0.86630938408136,0.466806939577483 0.748355962448101,0.779339050313329,0.197710602817114,0.668500456293639 0.271323244994822,0.699482111316476,0.447728719097907,0.435846538706314 0.349584624883407,0.11387117765934,0.0656505075078743,0.722898061727005 0.279852400959099,0.399312412106116,0.455218810021378,0.373323901364649 0.995671616397512,0.221204336930602,0.681509868080263,0.358148558353708 0.893415173373086,0.0187525892854743,0.629976154549333,0.94229234819423 0.0886126664516551,0.324235619435548,0.353827854017965,0.554554625323716 0.348588233348854,0.554021992361247,0.937203511136457,0.0134067507015891 0.657371273390019,0.375735596869979,0.10373258685828,0.618816023519186 0.164577451012034,0.293604199710669,0.0430449950155329,0.882282205982854 0.0141000244543762,0.353721588104515,0.790612855189188,0.675286403379808 0.818703897330933,0.497217776208521,0.686081785180874,0.391995917846802 0.466864503407887,0.896373183922236,0.456274698799392,0.320322467785822 0.509916951889025,0.161640987178143,0.635409354193489,0.360621789805191 0.640064069370543,0.466157713641619,0.69461271473599,0.140936494341735 0.0133831302480297,0.510584335389657,0.468805726095721,0.15729285648396 0.333134891478269,0.00209572676347414,0.23525323786211,0.349338828296593 0.525772096524599,0.522245669368437,0.959871469620765,0.842691216885966 0.351643944377882,0.187544933704844,0.0514081468697987,0.677613508147431 0.499043197738474,0.157325950711169,0.0763008724164342,0.351951218327085 0.892365369196299,0.430582530701911,0.304237673758149,0.749711566558878 0.876751512310603,0.2267678301497,0.953216421944972,0.687716114069581 0.937337519161034,0.153971645373783,0.165612000148676,0.209668344711972 0.741761717086289,0.536502682074979,0.271337899468208,0.959274415575959 0.467757812124011,0.156537634322021,0.591985358376465,0.707378918666973 0.243167182919248,0.345084990720641,0.339746750426056,0.695718790472253 0.813571255531642,0.301935576812953,0.181684477228735,0.471138835360992 0.965363768458848,0.0661912160548515,0.75755688881753,0.124071712134804 0.606522550329367,0.39896710590052,0.215359647613385,0.96998859707239 0.126719056776376,0.506695438867135,0.540816769598802,0.0534687573783384 0.43088582947906,0.0187271642676166,0.688932016521908,0.580781377882784 0.672653526928403,0.419061061432345,0.936905222664154,0.499066897514334
Or you can make the data into a table with the titles as variable names and use writetable:
T = array2table(MTR_data,'VariableNames',MTR_titles)
T = 144×4 table
Put Your Titles Here _______ _______ ________ _________ 0.91982 0.4213 0.75982 0.77743 0.63493 0.34105 0.97304 0.056006 0.76747 0.58036 0.60308 0.93402 0.65311 0.10608 0.18656 0.14835 0.30539 0.84983 0.12211 0.3304 0.27973 0.91527 0.59274 0.72192 0.34061 0.57292 0.79139 0.0051739 0.59213 0.16864 0.44126 0.94387 0.49348 0.79382 0.23696 0.60049 0.65699 0.62488 0.012386 0.071965 0.11159 0.45317 0.71321 0.70479 0.98914 0.2733 0.68645 0.64307 0.9328 0.67823 0.014724 0.82884 0.62633 0.50695 0.13082 0.59407 0.52692 0.82188 0.8424 0.63807 0.78255 0.34434 0.16198 0.34416
writetable(T,'MTR_Stats.csv')
type MTR_Stats.csv % check the resulting file
Put,Your,Titles,Here 0.919816739840983,0.421303613769751,0.759817162601134,0.777426693704026 0.634928334832576,0.341047515169294,0.973044070816325,0.0560062806567507 0.767471933689978,0.580359241481747,0.603076613071578,0.934020944064525 0.653110850469829,0.106080100538248,0.186555838173526,0.148350159211899 0.305390155313031,0.84983340795178,0.122113455819318,0.330400175504986 0.279732226525231,0.915273551477254,0.592738104515426,0.721916977644425 0.340607821688769,0.572924312820764,0.791385530912617,0.00517387088606447 0.592131256516049,0.168637005237888,0.441258200991442,0.943868958813541 0.493481005132198,0.793816690917391,0.23695650260219,0.600494069067377 0.656986561924896,0.624880807046323,0.0123863252419982,0.0719648060821956 0.111592281730588,0.45317179040155,0.713209769079482,0.704791298728423 0.989142418744633,0.273301202319323,0.686454767412966,0.643067329905738 0.93280216834923,0.678233514927917,0.0147241363544669,0.828843977374923 0.626332320428332,0.506948110073749,0.13082002996426,0.594069731046949 0.526922703999678,0.821884577874562,0.842400976257025,0.638067743007247 0.782547418847665,0.344336817289847,0.1619767011493,0.344158400666431 0.681579783963068,0.578605016106214,0.7300340456581,0.0838744465071922 0.800119530425165,0.608993406172251,0.469840215168959,0.289086684135665 0.948843320536947,0.262133084434227,0.280023576334084,0.387288593101767 0.163979346001584,0.153747855046034,0.258453625633597,0.237129739777862 0.0229248247233608,0.506503540279412,0.63801903730813,0.987434064785063 0.453145851391225,0.605144321020758,0.776043356929239,0.913818318799266 0.326974244039088,0.578450567545838,0.820483969010584,0.375824228594754 0.679100096925369,0.391524852312409,0.400658924008658,0.104691538665573 0.602502913103671,0.473642149030353,0.725853007083212,0.634639467129512 0.182415272560104,0.0725332522590821,0.770210839581487,0.968125323753469 0.884852770905274,0.910551338052841,0.211161877353241,0.390897341619538 0.897888285431506,0.375178187317614,0.229217769965627,0.520599278255635 0.291583094741614,0.12681676768842,0.239095582856551,0.201466516961632 0.223759794714284,0.561674430316476,0.3822406683089,0.721807500680079 0.336708975752448,0.635089435099435,0.224039191837775,0.462789133335353 0.520824976545215,0.321342063647029,0.621616483582687,0.362877878503793 0.853865421521953,0.808422332289932,0.0152276851379303,0.898083733371654 0.098072007176864,0.248498823104421,0.180364027491892,0.130474362052732 0.762369669593317,0.979249902031827,0.133891557195809,0.422279502511169 0.642249807061342,0.192957198538228,0.0195258427026646,0.933501801555988 0.774176159075944,0.829106130472116,0.442846087188787,0.392229087670727 0.164612923879417,0.935459863619869,0.213191394602656,0.199817333784685 0.526945361053054,0.325731627468192,0.842485113860733,0.685294493025887 0.593509491508495,0.642484001604657,0.616470683781316,0.257434495969722 0.31102572808086,0.982316343372152,0.88982530637164,0.128081622802509 0.221170180437769,0.905472813979417,0.655173365482167,0.518145413687075 0.453322448862322,0.686914278618811,0.854954552484132,0.874882743724067 0.622078316654639,0.858545219906614,0.700199998161266,0.611668371093444 0.335839382613891,0.325419959729098,0.175950926344654,0.518699913274045 0.441193558611562,0.370138987154386,0.243230297712906,0.219011447775097 0.333796515457958,0.246246215712984,0.22435128150063,0.985225313228842 0.34005026506831,0.846094663865804,0.609134642465243,0.400346095370057 0.269083510320648,0.199181697662176,0.385788269936165,0.577312650141421 0.802589804941849,0.855557055708358,0.0449262779243029,0.280273929147313 0.908126540915313,0.320489767374525,0.150026048945188,0.526598120818594 0.367535906607366,0.842379532231421,0.312713148950476,0.78476726674341 0.589957289427444,0.892030583363248,0.308685681770252,0.586166770202917 0.656892982687029,0.263200838524495,0.602441093178684,0.877840715245218 0.456271533567803,0.195246554259233,0.245916013268546,0.262994069202925 0.644127420903375,0.00262951316562621,0.969028127986996,0.994787743148051 0.340955705137988,0.407353306289364,0.910487522389795,0.00318367460105162 0.277614254917644,0.366085322655802,0.651680949310444,0.128263876594631 0.11691919696277,0.3040895699098,0.608296643905489,0.010076670650157 0.434648851912199,0.978728921483795,0.984185575011198,0.860484198931048 0.540237460185843,0.275883975985545,0.0456378821385309,0.113516069408984 0.782617453861241,0.928135036801944,0.790872961606021,0.654480408898535 0.837513827853431,0.761132692056837,0.668714170746627,0.0514280393753048 0.425361734692999,0.580424078276963,0.581018764894655,0.834283303270741 0.947341142889693,0.488181737446419,0.312602832494323,0.478382550980795 0.671064231061287,0.103407488308815,0.647745074184289,0.483786639494128 0.833378452864356,0.93841981189372,0.627454991844894,0.820758076729875 0.629153524225804,0.130996671341679,0.746073621390753,0.328274253096862 0.830885054822047,0.416494530353166,0.197136783297998,0.369047612266376 0.276753156353163,0.77843430715336,0.558303738106787,0.767936674299458 0.62498042129806,0.890065129320451,0.520317973297207,0.173608849740198 0.874433637672657,0.134532236701315,0.995922276959028,0.238775423116515 0.915659815000774,0.802426901014789,0.0722634398535792,0.11988728938862 0.305445180624205,0.264693272355917,0.753540491113671,0.371577167802405 0.172669996287453,0.178968118817826,0.833356575677007,0.952947609524059 0.669301919862493,0.856222688537348,0.464069297962064,0.168791637863293 0.815542054708313,0.954727961516315,0.886508636317341,0.420729842535014 0.836760956164026,0.972260448640999,0.453041513862871,0.591672038506386 0.0572993251671277,0.928821439482689,0.126657864559712,0.639448273568393 0.620415014879977,0.0747654808266066,0.153132502047575,0.528484827083073 0.849509405626303,0.087012215875653,0.349572535431078,0.0618729674254114 0.250708116199245,0.108095531803798,0.28432909405915,0.929692218541707 0.6163646649027,0.708760919013449,0.482080612913454,0.710041293093846 0.314416372365899,0.0278436190974145,0.50908054604509,0.201740825284375 0.119297961853417,0.514738203179559,0.0541545495070463,0.271230684990221 0.520169739157245,0.327117195693627,0.405198196704057,0.248851465465588 0.0417996662564244,0.456042691176556,0.362110605709798,0.993569014170225 0.360719720946754,0.796671628404783,0.486724473285948,0.357106879219194 0.137347576767868,0.191694563343494,0.366793455457501,0.667101737066037 0.234197840023577,0.234886648046218,0.695598728162899,0.818847442132032 0.61002065223352,0.37462812343065,0.252155030126738,0.99684150440464 0.946514929203109,0.554537358680866,0.83463168130055,0.376695568866259 0.543658219106945,0.72326830157341,0.314711991903457,0.676834826382557 0.292548516433561,0.674404080419916,0.0131004839926121,0.406616594333173 0.529708799047719,0.0400037268743235,0.332905713439835,0.286556486334414 0.0777143139774261,0.416275753414981,0.840345192976578,0.174276129163666 0.573529448953683,0.728183375452088,0.00497519709522209,0.959650078435971 0.153818308402315,0.700416772559477,0.942724572930199,0.248301287169017 0.891304159677559,0.558235029414432,0.643009460316009,0.948868101044612 0.527060477325359,0.450629452071905,0.586893444465562,0.531566486280931 0.0923358065960249,0.853289775134398,0.816895156713907,0.872916288791887 0.626757142594659,0.21222392238645,0.838583154308274,0.0970827451007136 0.847266106831019,0.854491572910942,0.63293130535271,0.288443102352971 0.602307109346103,0.0549338900624426,0.974194108478752,0.22084863139956 0.079247589123428,0.266783105193183,0.493828688115951,0.626717570297793 0.17402960001263,0.675095247953478,0.2852725270909,0.513880789038833 0.0730282401876483,0.80091900542113,0.407861467744278,0.238283814403595 0.482257520431129,0.22302878424885,0.65270884022966,0.927456583570925 0.463778133446858,0.427960539670842,0.746395218026638,0.743343764269674 0.935597794273933,0.139204040250113,0.902470180263561,0.979503925562447 0.495924040162546,0.862922503156209,0.742816036703023,0.174460348837215 0.0282920970782732,0.110801908700677,0.86630938408136,0.466806939577483 0.748355962448101,0.779339050313329,0.197710602817114,0.668500456293639 0.271323244994822,0.699482111316476,0.447728719097907,0.435846538706314 0.349584624883407,0.11387117765934,0.0656505075078743,0.722898061727005 0.279852400959099,0.399312412106116,0.455218810021378,0.373323901364649 0.995671616397512,0.221204336930602,0.681509868080263,0.358148558353708 0.893415173373086,0.0187525892854743,0.629976154549333,0.94229234819423 0.0886126664516551,0.324235619435548,0.353827854017965,0.554554625323716 0.348588233348854,0.554021992361247,0.937203511136457,0.0134067507015891 0.657371273390019,0.375735596869979,0.10373258685828,0.618816023519186 0.164577451012034,0.293604199710669,0.0430449950155329,0.882282205982854 0.0141000244543762,0.353721588104515,0.790612855189188,0.675286403379808 0.818703897330933,0.497217776208521,0.686081785180874,0.391995917846802 0.466864503407887,0.896373183922236,0.456274698799392,0.320322467785822 0.509916951889025,0.161640987178143,0.635409354193489,0.360621789805191 0.640064069370543,0.466157713641619,0.69461271473599,0.140936494341735 0.0133831302480297,0.510584335389657,0.468805726095721,0.15729285648396 0.333134891478269,0.00209572676347414,0.23525323786211,0.349338828296593 0.525772096524599,0.522245669368437,0.959871469620765,0.842691216885966 0.351643944377882,0.187544933704844,0.0514081468697987,0.677613508147431 0.499043197738474,0.157325950711169,0.0763008724164342,0.351951218327085 0.892365369196299,0.430582530701911,0.304237673758149,0.749711566558878 0.876751512310603,0.2267678301497,0.953216421944972,0.687716114069581 0.937337519161034,0.153971645373783,0.165612000148676,0.209668344711972 0.741761717086289,0.536502682074979,0.271337899468208,0.959274415575959 0.467757812124011,0.156537634322021,0.591985358376465,0.707378918666973 0.243167182919248,0.345084990720641,0.339746750426056,0.695718790472253 0.813571255531642,0.301935576812953,0.181684477228735,0.471138835360992 0.965363768458848,0.0661912160548515,0.75755688881753,0.124071712134804 0.606522550329367,0.39896710590052,0.215359647613385,0.96998859707239 0.126719056776376,0.506695438867135,0.540816769598802,0.0534687573783384 0.43088582947906,0.0187271642676166,0.688932016521908,0.580781377882784 0.672653526928403,0.419061061432345,0.936905222664154,0.499066897514334
  1 个评论
David Harra
David Harra 2022-6-20
Perfect !! I was just under the impression using the write matrix function was the way to do it.
Thanks a lot :)

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by