MATLAB: Output the ohms symbol

fprintfohms

How can i output the ohms symbol using fprintf?
fprintf('The resistance for the given color bands is 26000 ohms')

Best Answer

>> fprintf('The resistance for the given color bands is 26000 Ω\n')
The resistance for the given color bands is 26000 Ω
>> fprintf('The resistance for the given color bands is 26000 \x2126\n') % hex
The resistance for the given color bands is 26000 Ω
>> fprintf('The resistance for the given color bands is 26000 \20446\n') % octal
The resistance for the given color bands is 26000 Ω