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

조회 수: 2 (최근 30일)
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개)

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by