How to print \ in fprintf? - MATLAB Answers - MATLAB Central
I have to print a command to a file, lib_def ='.lib C:\Users\vaidy\Documents\LTspiceXVII\lib\cmp\standard.mos\n' Opamp_lib ='.lib UniversalOpamps2.sub\n' File = fopen('oscillator_8.cir','w'); fprintf(File,sprintf(lib_def)); ...