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

1 回表示 (過去 30 日間)
Nagarjuna
Nagarjuna 2013 年 10 月 7 日
コメント済み: Image Analyst 2013 年 10 月 7 日
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 件のコメント
Jan
Jan 2013 年 10 月 7 日
編集済み: Jan 2013 年 10 月 7 日
  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 2013 年 10 月 7 日
編集済み: Image Analyst 2013 年 10 月 7 日
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?

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by