Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7520073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:00:16+00:00 2026-05-30T02:00:16+00:00

I am trying to write a short function that will take a cell of

  • 0

I am trying to write a short function that will take a cell of strings and will write it as is to Excel:

Excel = 

'r2g'    'r3g'    't2g'    't3b'    'c3b'    'r1r'    'r1g'    'r3r'    't3g'    't1r'
't1b'    't2b'    't3r'    'c1r'    't3g'    'r2b'    'r1g'    'c3b'    'c2b'    'c1b'
'c3r'    'c3g'    't2r'    'c1b'    'r1g'    'r1b'    'r3b'    'c1r'    't1r'    'r1r'
't3b'    'r2r'    't1r'    'r1r'    't3r'    't1g'    'r3r'    'r2g'    'c1r'    'r1g'
'c1g'    'r2g'    'r3r'    'r2b'    'c3r'    'c3b'    'c1b'    'r3g'    't1g'    't3r'
't1r'    'r2b'    'r3r'    't3g'    'r1g'    'c2g'    'r2g'    't1b'    'c1b'    'c1r'
'c3b'    't1r'    'r3b'    'r1r'    'r2r'    'c1b'    'c2g'    'c2b'    't1b'    'r2g'
'r2b'    'c3b'    't2g'    'c2r'    'c1b'    'c1g'    't3b'    'c2b'    'c3r'    't1r'
't3r'    't1r'    'r1r'    't2b'    'r3r'    'r1b'    't3b'    'c3g'    'c3b'    'r1g'
'r3b'    't2g'    'r2r'    'r1r'    't3b'    'c3b'    'c1r'    'r2g'    't1r'    'c2r'

I want each triplet to be in a different cell in Excel. I looked at the answers here regarding the strings array but they didn’t work for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:00:17+00:00Added an answer on May 30, 2026 at 2:00 am

    You can just use the xlswrite function:

    xlswrite('filename.xls', yourMatrix);
    

    Edit: This function can accept either a matrix or a cell array. Thanks to commenters for pointing that out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a short function that will let me quickly read in
I am trying to write a nodejs server that will take a time input
I am trying to write a function that will output every other attachment caption
I'm trying to write a small Powershell function that will return some summary data
I'm trying to write a short script that will query my mysql db, and
I've been working on trying to write a function that will grab the POST
I'm trying to write a function in jQuery that will split lists - or
I'm trying to write a short Wordpress JQuery for Wordpress comments that would allow
In short: Trying to write a wcf service for a winform-app that invokes a
Trying to write a PowerShell cmdlet that will mute the sound at start, unless

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.