Answered step by step
Verified Expert Solution
Question
1 Approved Answer
are my codes pre-initialized for large arrays? how to improve it? %create binary stl file for i = (length(ftitle)+1):80 ftitle(i) = end fwrite(fid,ftitle, 'char+1'); fnumber
are my codes pre-initialized for large arrays?
how to improve it?
%create binary stl file for i = (length(ftitle)+1):80 ftitle(i) = end fwrite(fid,ftitle, 'char+1'); fnumber = Tength(OriCell. faces) + NumCells; fwrite(tid, fnumber, 'int32'); for i = 1:fnumber for 1:12 fwrite(fid, f_write(i,j),'float32'); end fwrite(tid, 0, 'int 16'); end fclose(fid); %create binary stl file for i = (length(ftitle)+1):80 ftitle(i) = end fwrite(fid,ftitle, 'char+1'); fnumber = Tength(OriCell. faces) + NumCells; fwrite(tid, fnumber, 'int32'); for i = 1:fnumber for 1:12 fwrite(fid, f_write(i,j),'float32'); end fwrite(tid, 0, 'int 16'); end fclose(fid)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started