channel.Loc semicolon

Hi BST community,

hope you are fine

I have a simple question but I do not have an answer
In channel.Loc there is semicolon between the numbers as: [0.0410;0.1061;0.0045]

I would like to insert new coordinates that I have in this form:
0.0207485655421089 0.0829486401560343 0.0124883096586798

How can I replace those new coordinates in the channel.Loc but included the semicolon?

Thank you!

Best regards
Abdallah

https://www.mathworks.com/matlabcentral/answers/69274-the-difference-between-semicolon-and-comma

yes but I am asking how can I re save them again with semicolon,
the values are saved with space or coma but not with semicolon
so is there a syntax I can used?

Hi, why saving in the form of eeglab xyz the channel.Loc: [0.0410;0.1061;0.0045]

gives different values: -10.608866 4.099918 0.454515 ?

yes but I am asking how can I re save them again with semicolon,
the values are saved with space or coma but not with semicolon
so is there a syntax I can used?

Space is the same as a comma => separates columns
Semi-colon => separates rows
If you are expecting to write scripts with Brainstorm, you would probably save some time by reading some generic Matlab tutorials explaining how to manipulate arrays and matrices.

Hi, why saving in the form of eeglab xyz the channel.Loc: [0.0410;0.1061;0.0045]
gives different values: -10.608866 4.099918 0.454515 ?

Exporting what, from where, how, to where?
Please be more specific: add descriptions of what you're doing and screen captures.

I original channel.Loc is with semicolon is look like that:
image

I want to replace the above with:
image

My question is how to put them with semiclon, because when I put them it appear in the channel.Loc with coma or with space but not with semicolon that seems with BST it should worked jut with semicolon

when I export those channel to eeglab format in BST:
image

the save file is look like:
image

comparing the both they have different values

In Brainstorm, the ChannelMat.Channel(i).Loc field should be [3 x Nintegration_points].
For EEG, you have one integration point only, it should therefore be [3 x 1].
https://neuroimage.usc.edu/brainstorm/Tutorials/ChannelFile#Edit_the_channel_file

If you want to modify these values, I recommend you directly edit the Matlab structures. Load the channel.mat with ChannelMat=load('/.../channel.mat'), modify the values you want, save it back with save('/.../channel.mat', '-struct', ChannelMat). I am not familiar with any other reliable solution for editing Matlab structures.

Read the Scripting tutorial for more help with scripting with Brainstorm:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting

When exporting as "EEGLAB-XYZ", th X and Y coordinates are swapped and the coordinates are converted from meters to centimeters:

Yes the issue is here, how to save the number with semicolon?,
the idea appear to be simple but I block on it :pensive:,
But anyway thank you Francois!

The values are not save "with or without semicolon", they are saved "as row vectors or column vectors".
If you are not familiar with Matlab syntax and matrix manipulation, you may have to teach yourself a bit about this before being able to write Matlab scripts...