Convert a structure into a string - MATLAB Cody - MATLAB Central

Problem 688. Convert a structure into a string

Difficulty:Rate

Convert the contents of each fields into a string.

Example with an input structure s with 2 fields :

s.age = '33'
s.prenom ='aurélien'

The output will be the string of size 1*11 :

str =
33
aurélien

which is the same of typing str = ['33',10,'aurélien']

Solution Stats

43.23% Correct | 56.77% Incorrect
Last Solution submitted on Oct 23, 2025

Problem Comments

Solution Comments

Show comments
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0
AI Is Transforming Engineering Workflows
It’s an honor to deliver the keynote at MATLAB EXPO 2025. I'll...
1

Problem Recent Solvers208

Suggested Problems

More from this Author30

Problem Tags

Community Treasure Hunt

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

Start Hunting!