Matlab class array / other array

  • Context: MATLAB 
  • Thread starter Thread starter K41
  • Start date Start date
  • Tags Tags
    Array Class Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
K41
Messages
94
Reaction score
1
Okay so what does this line of code mean:

snleg = strtrim(cellstr(num2str(alf_deg.')));

I did some research and it is ultimately removing whitespace (comma's, spaces etc) from a file scanned in, but I don't understand the argument of the function.

I don't understand what cellstr is or num2str. I read that it might be to do with cell arrays and they can't or can be modified? I am very confused :sI imagine num2str converts a number to a string value but why do we need to do this?

Please note, alf_deg was a variable already initialized in the code. Why do we need a .' in here?
 
Physics news on Phys.org