Community Profile ### shahid ba honar university

Last seen: 2 years ago Active since 2013

www.pro-vb-c.mihanblog.com

#### Statistics

All
• • • • • • • • • #### Content Feed

View by

How to delete rows of characters in Text files?
hi there, u can use the following lines of code: fid=fopen('txtfile.extention'); textdata=textscan(fid,'%n%n%n%n%n%n','...

8 years ago | 1

binary matrix that has different orders of 0 and 1
hi, you can easily construct the matrix using: A=zeros(size^2,size) where "size" is column number of the matrix. then ...

8 years ago | 1

How to separate signals with diffrent frequencies
1-you can use several filters with different center frequencies (chebishev or butter filter) h = fdesign.bandpass('N,F3dB1...

8 years ago | 0

How to draw 3-D plots in MATLAB
actually transfer function H(s) has a response which could be plotted on a 2D diagram.the vertical axis corresponds to the magni...

8 years ago | 0

How to put a user designed function in a simulink block
there is a block in simulink which accepts codes.... return values of function are block outputs and the inputs are function arg...

9 years ago | 0

Define matrix in MATLAB with 0s and 1s
define a vector as : a= [1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

9 years ago | 0

How do I set up constrained optimization
hi i work on phased arrays. i exactly know what do you want... download the user guide and review the first 100 pages. you wil...

9 years ago | 0

Submitted

Orthogonal Designs With Maximal Rates
a code for producing orthogonal codes used in wireless networks. Solving a Nonlinear Equation using Newton-Raphson Method
you can use the following line of code; x = fzero(@(x)x.^3 - 0.165*x.^2 + 3.993*10.^-4,0.05)

9 years ago | 3

How can i correct Newton rhapson method??
the algorithm should be like this pseudo code... function out = Newton(f,fprime,xstart,tol) xold = xstart; xnew = xol...

9 years ago | 0

How can i correct Newton rhapson method??
you may use somthing like this : while abs(xold -xnew) > tol xold = xnew; xnew = xold - feval(f,xold)/feval(fprim...

9 years ago | 0

I WANT TO EXTEND MY GRAPH WITHOUT DISTURBING THE MATRIX PLOT
the x vector you mentioned actually goes through the y axis... and in the black and white graph the x axis have a rank from 1 to...

9 years ago | 0

| accepted

3 matrix in a loop
a=[1 2;4 6] b=[5 6;8 7] c=[5 8;8 5] d={a b c}; for i=1:3 x=sin(cell2mat(d(i))) end

9 years ago | 0

| accepted

Question

how can i map a surface on a shape?
hi there i am working on phased arrays.there is lot's of antennas on a predefined lattice.now i want to map the lattice grid ...

9 years ago | 3 answers | 0

### 3

Servo control, using Matlab
hi, my Bs graduation project was "implementing a PID controller on FPGA and controlling a servo motor" you can find useful exa...

9 years ago | 0

Smoothing Spline curve fitting - Equation?
yes.there is a program named "data_from_graph_1v0" which can do the job for you. provide a mail address so i could send it to U...

9 years ago | 0

Can I connect 2 PID on a switch ?
use a de-multiplexer to separate them and use them individually.

9 years ago | 0

Need half of my contour plot
hello maryam, run following lines of code. x=0:0.1:10; y=x; j=1; z=meshgrid(x,y); h=ones(length(x),l...

9 years ago | 0

How do you creat one large text file?
load all mini text.then save the total workspace in a new text file .

9 years ago | 0

An elegant alternative to nested for loops for plotting simulations
hi. do not use HOLD ON command. you can compute and save your data in another matrix.then plot the whole data generated at once...

9 years ago | 1

hi, for generating Rayleigh channel we can code as below: h1=sqrt(0.5)*(randn+1i*randn)*(1/sqrt(2...

9 years ago | 1

How to do integration using MATLAB

9 years ago | 1

| accepted

Eye diagram: Redefining a variable?
the code dose not work on my pc. because prz and psin ,... functions are not provided with the code. following code: yrz...

9 years ago | 1

| accepted

try/catch in gui
just check the input box you created in GUI for numbers below desired value.if input number was bigger than upper bound you can ...

9 years ago | 0

Tracking mouse position on figure
you can use the function [x,y] = ginput(4)

9 years ago | 0

Solving wiener hopf equation for optimal filter coefficients
the problem you are facing is how to choose the length of the filter M. in the absence of a _priori_ information ,we compute th...

9 years ago | 1

Variable electrical load in a network
simultaneously use constant load and variable one in a submodel,see if you can construct your load model with linear or none lin...

9 years ago | 0

how to create customized curve ( only know the shape )
yes...there is a programme which accepts images and returned data... named "data_from_graph_1v0" it's about 300kb and i can ma...

9 years ago | 0