How do I read ".sig" file in Matlab?
Show older comments
I have to read a binary files which have an extension of ".sig". how do i import them into matlab and plot it's data`?
3 Comments
Walter Roberson
on 16 Jan 2019
This appears to refer to Broderbund image files https://whatis.techtarget.com/fileformat/SIG-PrintMaster-graphics-file
The file format appears to be undocumented and proprietary.
Gleb Shalimov
on 28 Apr 2022
Have you solved this problem?
Jonas
on 28 Apr 2022
can you provide an exemplary file and information about what should be the content
Answers (1)
Gleb Shalimov
on 11 May 2022
clear all;
close all;
global N_data; %колличество обрабатываемых отсчетов
N_data = 1048576; %колличество обрабатываемых отсчетов
i = sqrt(-1);
% выделение памяти для опорного сигнала и отраженного сигнала
op = zeros(1,N_data,'single')+i*zeros(1,N_data,'single');
kontrol = zeros(1,N_data,'single')+i*zeros(1,N_data,'single');
ima_faila = char('file's name');
ima_faila = strcat(ima_faila,'.sig');
signal = fopen(ima_faila,'rb');
if signal == -1
error('net faila');
end
input_s = fread(signal,N_data*4,'int16');
op(1:N_data) = input_s(1:4:N_data*4)+i*input_s(2:4:N_data*4); % опорный дальше от Е
kontrol(1:N_data) = input_s(3:4:N_data*4)+i*input_s(4:4:N_data*4); % контрольный ближе к Е
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!