MATLAB: How to obtain this format using either disp or fprintf??? Any basic instruction

displayfprintf

F1 1.00
F2 2.30
F3 5.79
Etc……

Best Answer

>> data=[1 1.00; 2 2.30; 3 5.79];
>> fprintf('F%d %.2f\n',data.')
F1 1.00
F2 2.30
F3 5.79
>>