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,320 40 View
Hi everyone, If you have written or come across any papers where Generalised Linear Mixed Models are used to examine intervention (e.g., in mental health) efficacy, could you please share the...
04 August 2024 4,130 4 View
HOW CAN I WRITE A CODE TO USE THE WAVENET TRANSFORM AS A FEATURE EXTRACTION METHOD INSTEAD OF DWT IN MATLAB?
03 August 2024 7,829 0 View
Dear Researchers I need to know, how to load and plot 2D-PIV (particle image velocimetry) recorded velocity vector field data in Tecplot? Thank You
02 August 2024 3,615 1 View
Dear All, I am trying to transfect a pCDNA3.1 vector containing my gene of interest. The purpose is to figure out the localization of the protein of interest. I have fused the protein with GFP on...
31 July 2024 9,892 4 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
I want to write a topic for my PhD thesis in hospitality (hotels), can u please suggest some variables
29 July 2024 9,058 3 View
a 15-page paper
29 July 2024 1,956 5 View
In hirshfeld surface calculation i did not find any red spot in hirshfeld surface, is it ok for research article to write?
28 July 2024 2,988 0 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View
Looking for paper collaboration writers: Collaboration Model 1: 1.1 Based on the chosen topic, complete the paper writing, select an SCI or SSCI Q1 journal, submit using my QRCID, and complete...
27 July 2024 8,965 1 View