- Please format your code, such that we can read it without pain.
- 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.
- 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.
- img= imag(:,:,:); is meanigless.
- The meaning of "dec2d = [... cA1, cH1; ... cV1, cD1 ... ]; " is mysterious.
how to upload an bmp image in ofdm signal processing? showing error in uploading image?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Jan
le 7 Oct 2013
Modifié(e) : Jan
le 7 Oct 2013
Image Analyst
le 7 Oct 2013
Modifié(e) : Image Analyst
le 7 Oct 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?
Réponses (0)
Voir également
Catégories
En savoir plus sur Import, Export, and Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!