Borrar filtros
Borrar filtros

how to upload an bmp image in ofdm signal processing? showing error in uploading image?

1 visualización (últimos 30 días)
clc; clear all; close all;
c1=8; v=4;% no of sub blocks Fs=10^3; NN=0:.1:13;%CCDF???? ccdf0=zeros(1,131); ccdf2=ccdf0;
% ======Parameters=======
FFTLength=2048;%Length of FFT to be performed
modu={'BPSK MODULATION','QPSK MODULATION','8PSK MODULATION','16QAM Modulation'}; ae=0;
%========Operation on Image==================%
imag = imread('frame.bmp');%to read an image figure(); imshow(uint8(imag(:,:,:))); title('Original Image'); %imag=rgb2gray(imag) [cA1,cH1,cV1,cD1] = dwt2(imag, 'Haar'); dec2d = [... cA1, cH1; ... cV1, cD1 ... ]; %axes(handles.two); imshow(dec2d,[]); title('Transformed Image');
img= imag(:,:,:);
[g gg t] = size(img);
binary = dec2bin(img, 8); %Converting image in binary character%
[s ss] = size(binary);
sigg = reshape( binary', 1,s*ss );
sig = str2num(sigg'); % if no transpose then sig will be Inf%
input=sig';%serial Input of binary numbers
%========Zero Padding============%
  2 comentarios
Jan
Jan el 7 de Oct. de 2013
Editada: Jan el 7 de Oct. de 2013
  1. Please format your code, such that we can read it without pain.
  2. I suggest to avoid the brute clearing header "clc; clear all; close all", because this clears the breakpoints of the debugger also. But the debugger would be your friend for finding the reasons for errors.
  3. Please do not interpret the error message, but post a complete copy. While the forum is powerful at solving problems, it is weak for guessing what and where the error is.
  4. img= imag(:,:,:); is meanigless.
  5. The meaning of "dec2d = [... cA1, cH1; ... cV1, cD1 ... ]; " is mysterious.
Image Analyst
Image Analyst el 7 de Oct. de 2013
Editada: Image Analyst el 7 de Oct. de 2013
And even beyond those issues, I don't even know where he's trying to upload the image to . Some website? Here in Answers? If you want to upload it here, use the image icon or the paper clip icon, or both. What line of code is the line that's supposed to do the uploading?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Import, Export, and Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by