Tag: octave

66 votes
3 answers
772 views
Octave/Matlab: Adding new elements to a vector

Having a vector x and I have to add an element (newElem) . Is there any difference between - x(end+1) = new

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
63 votes
6 answers
449 views
How to concat string + i?

for i=1:N f(i) = 'f'+i; end gives an error in MatLab. What's the correct syntax to initial

avatar
Jeff
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
1.8K views
Why/when should I prefer MATLAB over Octave?

In our shoestring operation we need to prototype algorithms in some higher-level language before committing to

avatar
Dario
0 1 0 9
asked 07 September, 2021
65 votes
2 answers
1.2K views
cocktail party algorithm SVD implementation ... in one line of code?

In a slide within the introductory lecture on machine learning by Stanford's Andrew Ng at Coursera, he gi

avatar
Louetta
0 1 0 9
asked 07 September, 2021
63 votes
2 answers
1.6K views
Octave / Matlab: Extend a vector making it repeat itself?

Is there a way to extend a vector by making it repeat itself? >v = [1 2]; >v10 = v x 5; %x represents s

avatar
Georgie
0 1 0 9
asked 07 September, 2021