Click here to Skip to main content
15,898,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello


I've got some workspace data in matlab, I would like to be able to convert the workspace name to a string so I can use strcat.

So given I've got a 3D array called Rubic, when i use the following commands
namenew = strcat(Rubic, 'whatever')
namenew = imnoise(Rubic, 'speckle');

I get an error

I know it's because I'm using Rubic when it should be 'Rubic'

A quick fix that I can think of is

function name(filenameworkspace, filename)

run by typing
name(Rubic,'Rubic')


Does anyone know how I can convert the name saved in workspace to a string?


Many Thanks
Regards Opul3nce
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900