Search Engine www.edaboard.com

Grid Matlab

Add Question

Are you looking for?:
via grid use , off grid , via and grid , grid via
1000 Threads found on edaboard.com: Grid Matlab
I have to solve sub grid(irregular) fdtd with matlab. I hope some one can upload this code. Please~~~~~~!!!
I need grid based clustering algorithm (code) for matlab (or C++).. I can't find it anywhere... Please help.. Something simple that works.. STING, WaveCluster, Clique, Optigrid or something else.. I'm writing a paper about grid based clustering and I need to attach code to show how it works.. If anyone knows, please (...)
Hi, I would like to request somebody to help me in the following matlab problem: I want to propagate a converging optical beam down its focus. I have started with a 1024 x 1024 number of grid points across the beam ( an uniform circle of white colour inside a background square of black colour------the size of the square is 6.5 mm x 6.5 mm a
Hi. I need to matlab/simulink model for grid connected to photovoltaic. please send mdl file to my email: mehran.moslehi1987@gmail.com.
Hi. I need to matlab/simulink model for grid connected to photovoltaic with only inverter. with out dc dc converter.
I'm a beginner in FDTD programing. Anyone have a matlab code to solve the irregular grid problem?? THX
little matlab demo of fractional derivative..enjoy N=256; t=pi*/N; f=exp(-(t.^2)/(0.5)); f=f-mean(f); F=fftshift(fft(f)); figure(1);clf;set(gcf,'Renderer','zbuffer'); for n=0:0.1:4 Fn=(j*t).^n .* F; fn=ifft(fftshift(Fn));fn=fn/max(abs(fn));plot(real(fn)); text(20,1.0,sprintf('%0.2f',n)); grid on;axis( [0 2*N -1.
little matlab demo for fractional fft...enjoy N=64; t=2*pi/N*;c=1; for k=-N/2:N/2 B(c,:)=1/sqrt(N+1)*exp(-j*k*t);c=c+1;end; f=exp(-t.^2); f=f-min(f); f=f'; figure(1);clf;set(gcf,'Renderer','zbuffer'); for n=0:0.1:2.0 Bn=B^n;fn=abs(Bn*f);plot(fn,'b');hold on;plot(f,'r--');hold off; text(10,1.7,sprintf('%0.2f',n));
Hi, I think you may have a problem with that, since matlab hasn't 3D polar plot instruction. However I use a spherical triangular grid (either imported as ASCII from any 3D graphing tool, or generated manually) then use PATCH3 instruction to plot the triangles with the color being proportional to the radiation intensity (or gain in that dire
I do have a S(f) calculated and now I made a x-y coordinate system using this code subplot(2,2,1); semilogx(f,real(S11)); xlabel('Frequency'); ylabel('Real(S11)'); title('Real(S11) = Real(S22)'); grid; As a figure I get empty drawing so i'm interested how to plot the line for the S that i have calculated.What is the co
There are several aspects of this. The first is the legal aspect. The owner of your power grid may need to give you specific permission to do this. The technical aspects are just the same as for a steam generated power plant. You have to adjust the voltage and phase angle relative to the grid to make real (not reactive) power flow into the
I'm facing problems trying to implement an algorithm i have been thinking in matlab... Here's what i want to do... I have a number of cells(say n cells) (or cities, or points or whatever). The cells are not all connected each other. Some cells are connected with some neighbor cells but no one else. I know the connections. What i want to do is t
/******************************************************************************/ /* MAIN_C /******************************************************************************/ #include #include "gridTree.h" /* THE grid |----------------------------------------------- | |
hi i ran your program in matlab 7 and it worked successfully. i think error belong to "angle" because it is one of matlab functions. use: r = 1.2; theta = 10*pi/180; ang = 0:theta:36*theta; mag = r.^(ang/theta); polar(ang,mag) grid title('Polar Plot')
there is an example x=0:10:1e6; semilogx(x,log10(x));grid;
I think you should first solve for I as a function of V. Then you can use that to write an expression in matlab. Once you get that expression and write I=f(V) then you are basically done. The following code (with an appropriate expression on the right hand side of I= ) should do it. V=; I= plot(V,I),grid
Dear all, This is a part of sigma-delta modulator code in matlab. tr = 1024*4; % points for transient pt = 1024*32; % FFT points tt = tr+pt; % total points osr = 64; % osr=64 fc = 20000; % signal bandwidth = 4k fs = 2*fc*osr; % sampling frequency
Hi all I've a question about ADC TEST. I received matlab code for logic analyzer's data in MAXIM Homepage. But I'm confused about that. In code... . . . figure; plot(,code); title('TIME DOMAIN') xlabel('SAMPLES'); ylabel('DIGITAL OUTPUT CODE'); Dout=code-(2^numbit-1)/2; %Re-center the digitized sinusoidal input Dout
Xc= 2; %Center for x Yc = 3; %Center for y R = 2; %This is the radius x=0:0.01:1; %degree plot(Xc+R*cos(2*pi*x),Yc+R*sin(2*pi*x));%the circle plot grid
Your code is close but had a few errors. Here is the working code. close all; clear all; reg1 =0; reg2 =0; reg3 = 0; eta =sqrt(2)/2; theta =2*pi*1/100; Kp = ; Ki = ; d_phi_1 = 1/20; n_data = 100; for nn =1:n_data phi1= reg1 +d_phi_1; phi1_reg(nn) = phi1; s1 =exp
Hi all, I want to plot an i-v curve of this equation i=100*^2 by using matlab, but unfortunately it looks that the plot I get isn?t the one that I want, so I think there must be something wrong but I don?t know it. Your suggestions and comments will be highly appreciated! Here is my code: %current versus voltage cur
fs=50; fcut1=10; fcut2=5; w1=2*fcut1/fs; w2=2*fcut2/fs; =butter(2,w1); =butter(2,w2,'high'); =freqz(b,a,100,fs); =freqz(b1,a1,100,fs); kfr=abs(h); kfr1=abs(h1); subplot(2,1,1),plot(kfr);grid; subplot(2,1,2),plot(kfr1);grid;
In this example, we shall simulate the shapes of the electrocardiogram for both The following commands create an electrocardiogram signal heart might produce assuming a 4000 Hz sampling rate. The heart rate for this signal is approximately 89 beats per minute, and the peak voltage of the signal is 3.5 millivolts. x1 = 3.5*ecg(2700).'; y1 = s
my project is about FIR filter design by the FFT algorithm, I have some problem in writing code in matlab. if any body could help me I'll really be tankful. please copy paste this code in your matlab software(ver.7) & run it. f = ; m = ; h(:,1) = fir2(31,f,m) ; %time domain FIR filter plot(b); hold on plot(I,h(
x and z are RV of gaussiana distribution and not correlated, y is a RV of a gaussiana distribution and correlated with x n=2^13; x=randn(1,n)+3; z=randn(1,n)+4; y=zeros(1,n); m=50; for i =1:n-m y(i)=mean(x(i:i+m-1)); end plot(); grid The density function: =hist(x,50); fx=fx/sum(fx); =hist(y,50)
Search matlab help for "plot", "polar", "mesh", and "surf", and you will find good examples. Here's a simple example of subplots, and a few other adjustments: x = 0:30:360; y = ; subplot(1,2,1); plot(x,y); grid on; set(gca,'XTick',0:30:360'); xlim(); subplot(1,2,2); polar(x*pi/180,y); view(-90,9
matlab provides the inbuilt function for QAM. Here is the code... just try over this Create a random digital message M = 16; % Alphabet size x = randint(5000,1,M); % Message signal % Use 16-QAM modulation. y = qammod(x,M); % Transmit signal through an AWGN channel. ynoisy = awgn(y,15,'measured'); % Create scatter plot from noisy d
Hi x: x(1:12)=0; x(13:17)=1; x(18:29)=0; n=-14:14; stem(n,x,'.'); grid; axis() For X(ejw): W=-2*pi:1e-4:2*pi; plot(W,sin(2.5*W)./sin(W/2));
Hi all I want to grid (FEM 2-D) a geometry that is bounded with a function (defined in a mfile) in matlab. in pde of matlab it is described with command "initmesh" but this command did not recognize my function. I want to know the user defined function must have what properties?
Hi dear see this (my program) clc; clear all; disp('M-Array PSK Modulation') %create a random digital message M=input ('M= '); %alphabet size x=randint(input('Number of binary bit stream = '),1,M); nsample=40; %oversampling rate. %% %% %use M-PSK modulation to produce y y=modulate(modem.pskmod(M),x); %% %follow with rectangular p
Hi experts, i have a quistion here, please read the following paragragh as it is in a pdf document on the web: The Fourier transform can be computed using the matlab code Fk = fft(fn)/N; % The FFT of the signal fn fn = ifft(Fk)*N; % The Inverse FFT ifft(fft(fn)); % This result = fn (within machine precision) We must divide by the number of
clc;clear all; %create a random digital message M=64; %alphabet size x=randint(100e3,1,M); %% %use 16-QAM modulation to produce y y=modulate(modem.qammod(M),x); %% %%transmit signal through an AWGN Channel ynoisy=awgn(y,27,'measured'); %% %Create scattet plot from noisy data scatterplot(ynoisy),grid; %% %Demodulate ynoisy to recover t
In a matlab code, i have to finde the symbol error rate of 32qam modulation with awgn and SNR from -30 to 30 and step 5. But the figure apears wrong. Can somebody tell me what i made wrong in the code??? clear N=10^4; M=32; for SNR=-30:5:30 x1=randint(1,N,M); y1=qammod(x1,M); for t=1:N awgn1 =awgn(y1,SNR,'measur
Yes matlab is the best tool for simulating antenna arrays; Below i have typed some matlab code to simulate liner antenna array. change the different variable and see the results. %******************************** clc clear all f=2000; c=340; d=.08; N=10; theta= 45 * (pi/180); si=0:pi/100:pi; for k=1:101 peak(k)=(sin(N*f*d*pi*(cos(
Here i hav written a small code to plot ur data, hope it will help clc clear all fid=fopen('C:\Documents and Settings\Zeeshan\Desktop\a.txt'); data=fread(fid,inf,'int16'); figure(1) plot(data(1:100)) grid on fclose(fid);
function askd(g,f) %Modulation ASK %Example: %askd(,2) objectId=14328&objectType=FILE if nargin >2 error('Too many input arguments') elseif nargin ==1 f=1; end if f<1; error('Frequency must be bigger than 1') end t=0:2*pi/99:2*pi; cp=;sp=; mod=;mod1=;bit=; for n=1:length(g); if g(n)==0;
Hi, I have a matlab code here it acquires FM modulated signal from sound card can perform FM demodulation however, i don't why it set vcok (VCO K constant) at 0.176 anyone can explain to me how and why it is set to 0.176? Fc = 2144; %select VCO carrier frequency vcok = 0.176; %select vco constant Fs = 40000; %select sound card sampl
I think the good point to start you is with the DC/DC converter control.... then move to Inverter Control and then grid synchronization.
this is the bpsk code i tried in matlab.. but no output... plz help... for j=1:7 eb1(j)=j; no=1; eb2(j)=10.^(eb1(j)/10); a=sqrt(eb2(j)/4); %s=; s1=; s2=; psi=; x=0; for i=1:10000 d=randint(i); if d==1 s=s1; else s=s2; end n=randn(1,4); n1=n*sqrt(no/2); r=s+n1; z
This is a program in matlab to do the DFT and the FFT (2-sided and 1-sided) Good luck %FFT lecture. clc;close all; clear all; %Generate the sine wave sequences fs=8000; % sampling rate N=1000; % Number of data points. x=2*sin(2000*pi*/fs) ; figure(1) ; stem( 1 : 1:N/10,x( 1 : 1 :N/10 ) ,'filled' ) ;%plot first 100 sample of x(n)
hi this is pradeep doing mtech in nit.i want matlab/simulink model for pv sytem.please send mdl file to my email
Here it is: % FDTD Main Function Jobs to Workers % %*********************************************************************** % 3-D FDTD code with PEC boundaries %*********************************************************************** % % This matlab M-file implements the finite-difference time-domain % solution of Maxwell's curl
Sir, I had tried fliplr but was not getting desired results..please look at my code. This is a code to plot X.. x=; n=-2:1; k=fliplr(x); m=-n; plot(m,k) grid on xaxis('x axis:n') yaxis('y axis:x') The problem i am facing is how to handle X where values in array x are related to n, and subsequently plot them. Li
Hey guys Hope u r all well. I have written a matlab code for PSK.. and it produces a graph... but i know that the graph is not what im looking for .. it doesnt produces a correct phase shift.. The code is : % % Generating a input square wave x1 = 0:(pi/100):(20*pi); y1 = square(x1); A = plot(x1,y1); figure(1),A,title( 'Square wave
how do i add the result for the calculation of bit rate, baudrate and bandwidth on this program? clear; clc; b = input('Enter the Bit stream \n '); %b = ; n = length(b); t = 0:.01:n; x = 1:1:(n+1)*100; for i = 1:n for j = i:.1:i+1 bw(x(i*100:(i+1)*100)) = b(i); end end bw = bw(100:end); sint = sin(2*pi*t);
You can use the following code: angle = linspace(0, 2*pi, 360); x = cos(angle); y = sin(angle); plot(x,y) axis('equal') ylabel('y') xlabel('x') title('Circle') grid on
I have created a GUI in matlab for Amplitude Shift Keying so that it would prompt the user to input the binary bit stream, then it would be able to produce the modulated graph and the bit rate and baudrate below. I have done three months research on the codes and it is successful; Unfortunately something went wrong when i programmed into the GUI
I did not understand what your problem exactly is. Is it integration in 2D in matlab? If you want to integrate two-variable functions over rectangular areas, you can make use of "meshgrid" function. Below lines may give you an idea. =meshgrid(-5:0.1:5,-10:0.1:10); % x,y grid for two independent variable is created. (...)
freq = ; mag = ; x = fir2(101, freq, mag); % Evaluate and plot the input spectrum = freqz(x, 1, 512); plot(w/pi, abs(Xz)); grid xlabel('\omega/\pi'); ylabel('Magnitude'); title('Input spectrum'); pause % Generate the down-sampled sequence M = input('Type in the down-sampling factor = '); y = x([1:
Heya Scott - unevenly sampled data is a turd! Two options spring to mind: 1. Resample the data onto a 1ms grid and go from there, or 2. Use spectral estimation techniques that don't rely on regular sampling, such as the Lomb-Scargle periodogram described in Numerical Recipes ( ). I see someone has kindly written a function