Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MATLAB PROGRAMING + gaussian finction

Status
Not open for further replies.
Re: MATLAB PROGRAMING

awoji said:
an interested too, an a master student

tell us about your field
 

Re: MATLAB PROGRAMING

hi,
i really need your help. your idea is very good.
can you help me?
I want compare FWHM of two curves in matlab , but i don`t know what i should do.

please offer me a method or a m-file program.

thanks so much.
 

MATLAB PROGRAMING

Hi guys,

I read the first post about the use of Matlab. Can anyone explain about some other applications of Matlab. How it can help in developing products or solutions.

Thanks,
Anish
 

MATLAB PROGRAMING

hi friends
I am doing my thesis in Handover perfomance evaluation. Can anybody send me matlab code related to handoffs.
Thank you
 

Re: MATLAB PROGRAMING

veerpal said:
hi friends
I am doing my thesis in Handover perfomance evaluation. Can anybody send me matlab code related to handoffs.
Thank you


Don't think so. You start, show others some progress, only then will some one help you. I have seen many, many people looking for Handover simulation... don't think any one has got it. Even if someone has, they wouldn't just give it to you!
 

Re: MATLAB PROGRAMING

Hi! Can anybody help me with my Matlab works?

I have the bellow question with me. And I've done something for that, but my answer is not same as the given ones. I'm kind of lost with this. Could you please help me?

The Question?

The MATLAB function randn will generate a zero mean unit variance Gaussian random number. If x is to be a zero mean Gaussian random number with variance (sigx)^2, we can generate such a number with the MATLAB code x = sigx * randn ;
where the user-defined variable sigx equals the sandadiviation.

(a) Suppose x is a floating point number in MATLAB. x can be quantised to B bits, relative to V, as follows.
i. Multiply x by 2^(B-1)/ V
ii. Round x1 to the nearest integer.
iii. Multiply the rounded value of x1 by V/2^(B-1) to restore it to a value close to the original number x.

Write a MATLAB function quantise(x, V, B) that accepts x, V and B and outputs
a quantised value equalling x rounded to B bits, relative to V.
Devise some simple tests to check your function. (e.g., set V =1, B = 2 so that you can quickly work out by hand what the output of the function should be.)

(b) Suppose an ADC has reference voltages ±V = ±1 V and B = 8 bits. Generate and save 1000 random samples of x, each of which has a Gaussian distribution with mean zero and variance = 0.05. Quantise x to B = 8 bits. Denote the Quantised numbers by xq . Calculate and save the quantisation errors eq = x−xq .

(c) Estimate the variance of the quantisation error eq, from the 1000 saved samples of eq . Estimate also the variance of x, from the 1000 saved samples of x. Estimate SNRq by computing 10log (variance x/ varianc eq).
eq is white?


to fulfill this exercise I wrote the below codes.

function [snrq] = snrq()

function [xq] = quantise(x, V, B)

x1 = round((x*2^(B-1))/V);
xq = x1*V/(2^(B-1));


end

%part 2.b---------------------------------------------------------------
V = 1; B=8;
sigx = (0.05)^(1/2); % variance = 0.05
x = sigx*rand(1000); % generating 1000 samples of x with zero mean and variance of 0.05
xq = quantise(x,V,B); % quantising x for 8 bits
eq = xq - x; % caculating the quantisation error

%part 2.c---------------------------------------------------------------

variance_eq = var(eq); % estimating the variance of the quantisation error
variance_x = var(x); % estimating the variance of the 1000 samples of x
snrq = 10*log10(variance_x/variance_eq);

%part 2.d--------------------------------------------------------------
%x = -4:0.1:4;
figure(1)
hist(eq);
h = findobj(gca,'Type','patch');
% set(h,'FaceColor','r','EdgeColor','w');
title('Historgram of eq');

%part 2.e--------------------------------------------------------------
y = fft(eq);
end

% the SNRq from my function = 29.1170
% while SNRq = 6.0206B + 4.7712 - 20Log(V/variance) = 39.925


Here I suppose to get the answer 39.925 but my function generates 29.1170. So can you please help me to figure the error out?

Thanks in advance.
Aki.T

[/u]
 

Re: MATLAB PROGRAMING

I Would also like to join this Class....
MATLAB PROGRAMING
Thanks
 

Re: MATLAB PROGRAMING

Hi,, can anyone help in Convolutional encoding in matlab with rate 5/6..
please help
 

Re: MATLAB PROGRAMING

hi hyper 145
thanks for these classes u r providing on internet
i m new to MATLAB nd i hav to do my project on it i need help in programming can u help me out.
reply me on my email id sweetangel.swett11@gmail.com
thanks
 

MATLAB PROGRAMING

Go through the entire post, do you see any 'classes'?

It only contains posts from people who want help in programming
 

Re: MATLAB PROGRAMING

My final thesis is about Estimation some parameters of multirate
asynchronous DS systems.
I have some problems to simulate a multirate asynchronous ds-system.
If it is possible, send for me MATLAB codes that simulate these
systems or describe the basic ideas for simulation such systems.
Best regards
 

Generating truncated sinc function

Hi,

I am Masters student for wireless, i have project in which i have to generate sinc function and have to modulate for 8-PAM with data.

I am 2 problem in this program, 1) generating truncated sinc signal, 2) fft scaling

Generaly for 8-PAM what we do is, we multiply symbol to rectangular pulse to get modulated signal. Now i have to replace that rectrangular pulse by sinc which should have only 10 side lobes(ideally sinc varies from -infi to infi).

Here i am posting my program and its result,


clear all;
close all;
clc;
% 8-Pulse Amplitude Modulation
%initialization
fs = 48000; % Sampling Frequency
ts = 1/fs; % Sampling Period
symbol_rate = 1000; %Symbol Rate
symbol_length = fs/symbol_rate;
pulse = ones(1,symbol_length);% Generating pulse with unit amplitude
string_to_transmit = input('Enter the string you want to modulate : \n','s');
while (isempty(string_to_transmit)==1)
string_to_transmit = input('Kidnly enter the string, thank you: ]n','s');
end
%convert string to ascii value
ascii_value = double(string_to_transmit);
% Generating Binary data represeting ascii values
for k = 0:(size(ascii_value,2)-1)
b(k+1,: ) = [zeros(1,7-length(dec2bin(ascii_value(k+1)))) dec2bin(ascii_value(k+1))];
end
binary_values = uint8(b)-48;
[x,y] = size(binary_values);
data = [];
%Generating single Row of data which is to be modulated
for i = 1: x
data(1,end+1:end+y) = binary_values(i,: );
end
%Padding zeros after actual data to complete the 3 bits of transmission
[number,length0] = size(data);
x = rem(length0,3);
if (x ~= 0)
data:),(end+1):(end+(3-x))) = zeros(size(data,1),(3-x));
end
% Symbol generation 1 symbol represent 3 bits
[number,length0] = size(data);
symbol = [];
j = 1;
tau = randi([0,symbol_length]);
for i = 1:3:length0
s(j) = (8*data(i)) + (4*data(i+1)) + (2*data(i+2)) - 7;
j = j+1;
end
%Generating the modulated signal
for i = 1: length0/3
for j=1:symbol_length
signal((i-1)*symbol_length + j+tau) = s(i) * pulse(j);
end
end
%Plotting Modulating Signal and Frequency spectrum
index = 0: ts: ((length0/3)*symbol_length+tau-1)*ts;
freq=fft(signal);
freq=fftshift(freq);
figure(1);
plot(index, signal);
set(gca,'ytick',-9:2:9);
xlabel('time');
ylabel('amplitude');
title('basband transmission signal of 8PAM');
figure(2);
plot(abs(freq));
xlabel('frequency');
ylabel('magnitude');
title('spectrum of 8PAM signal');




 

hi i am interested in what you are doing.
and i am doing a final project in Digital watermarking using DCT, i need help in doing it because i am new in both "MATLAB"and "watermarking".
any help from you, i would be thankful

best regards
~omar
 

Hi i want matlab code of Digital Communication semester project. Please Help me out.
 

hello
im doing my btech final yr. i want to do my project on text-speech conversion using matlab r calculation of heartbeat using matlab.
so plz help me in coding.i need matlab coding for these two projects. and if anyone know some other projects which belongs to dsp which uses matlab plz reply me. ts really very very urgent. i have to submit my project abstract on 14th of this month. so plz give me reply
 

I really wonder what people expect after posting messages like

"i'm doing a project on ...., irs very urgent pls help" or
"pls send me ... code for ..... my email is sdfas@fdf.com"

In other to get help, one needs to ask a specific question and give detailed info about what he or she has done so far. No one will write 10000 lines of code just to answer a question in a forum post.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top