Dear All, Who can write a matlab code that converts the summation 1+2+3+4 to a row vector [1 2 3 4]?
share the data that you wan to convert let me try
Dear Chigbogu,
Try this:
a = '1+2+3+4';
a = strrep(a,'+',' ');
b = str2num(a)';
% b is numeric and a row vector of the size (4,1)
isnumeric(b)
[sz1, sz2] = size(b)
This is perhaps the wrong forum for questions of this type. Matlab central would be more appropriate, see link below
Best regards,
Peter
https://de.mathworks.com/matlabcentral/
Thanks, Peter Lasch. I traditionally used "coeffs" command for similar problems but I was looking for a faster approach and your suggestion solves my problem. One again, thanks for recommending the appropriate forum.
Sometimes, reviewers judge papers as unacceptable based on the perception that some necessary contents are missing. Meanwhile the contents were already included in the papers and their wrong...
01 January 1970 1,249 40 View
Is it possible to induce site-directed substitution mutation by quick-change method on linear dsDNA? or it has to be cloned in some vector? If yes, should it be treated with the Dpn1 enzyme...
03 March 2021 401 4 View
I have conducted and published a systematic review and meta-analysis research with the topic related to public health and health pomotion (protocol was registed in PROSPERO). Now we want to...
03 March 2021 8,920 3 View
Hi everyone, I'm studying Marketing and I would like to write my PhD thesis on the topic of pricing. Any specific ideas?
02 March 2021 9,706 5 View
We are analysing scientific reports at University in great detail, so I wanted to find a scientific report about how to write a scientific report. Including detail such as what information to put...
02 March 2021 7,602 4 View
We have one plant, the local people using this for controlling blood sugar, the toxicity and antidiabetic activity of the plant is not reported yet, please guide from whag should be the process ?...
02 March 2021 2,300 1 View
How do I do energy minimization in lammps with NVT ensemble ? I am using the following command and it does not seem to work. It stops at extremely high energy and gives me the error zero search...
01 March 2021 2,294 3 View
01 March 2021 3,905 5 View
I am a second-year grad student. I am finding it difficult finding time to read literature and write (things like qualifying exam, thesis, grants). I find myself so busy with bench work that I...
01 March 2021 3,325 4 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
Hello, Is it possible to use pUC19 as a transfer vector to be packed in using the second generation viral particles packaging system( pMD2.G; psPAX2 plasmids)? As far as I understand it there is...
28 February 2021 4,868 2 View