Top 10% contributor
sum = 0;
threshold = 1e-6;
for ii = 1 : 1 : 100000
sum = sum + 1/ii^2;
if abs(sum - pi^2/6) <= threshold
Answered 2 years ago
You can try a function called "readtext"
Download link: http://www.mathworks.com/matlabcentral/fileexchange/10946-readtext
The problem I have encountered is:
I compiled an EXE with Matlab compiler on my computer (version R2011a, i.e. MCR version is...
Asked 2 years ago
I currently use a 64-bit Windows machine to compile my GUI into executable programs. Can the EXE program run on bo...
Asked 1 year ago
I tried to use MATLAB Coder to generate a MEX function from a MATLAB function.
I used the simplest example to make sure the M...
Just do cumsum repeatedly for 12 times.
I recommend using "readtext" function from File Exchange (http://www.mathworks.com/matlabcentral/fileexchange/10946-readtext).
There is no need to use for loop to do this.
If you want 3 pieces, just
piece1 = initialData(1:10000);
piece2 = initi...
Type "guide" from the command window of Matlab, then study the "GUIDE templates."
GUI design requires some learning. Not very...
Join the conversation