FORUM FOR DISCUSSION ON MATLAB

Matlab is a commercial “Matrix Laboratory” package which operates as an interactive programming environment. It is a mainstay of the Mathematics Department software lineup and is also available for PC’s and Macintoshes and may be found on the CIRCA VAXes. Matlab is well adapted to numerical experiments since the underlying algorithms for Matlab’s builtin functions and supplied m-files are based on the standard libraries LINPACK and EISPACK.

The capabilities of Matlab can be extended through programs written in its own programming language. It provides the standard constructs, such as loops and conditionals; these constructs can be used interactively to reduce the tedium of repetitive tasks, or collected in programs stored in “m-files” (nothing more than a text file with extension “.m”).

Matlab is a very useful tool. And has an array of applications. Some of them are :-

Technical Computing

Mathematical computation, analysis, visualization, and algorithm development

Control Design

Model-Based Design for control systems, including simulation, rapid prototyping, and code generation for embedded systems

DSP – Digital Signal Processing & Communications

Model-Based Design for signal processing and communication systems, including simulation, code generation, and verification

Image Processing

Image acquisition, analysis, visualization, and algorithm development

Test & Measurement

Hardware connectivity and data analysis for test and measurement applications

Computational Biology

Analysis, visualization, and simulation of biological data and systems

Computational Finance

Financial modeling, analysis, and application deployment

Looking at such a wide array of implementation for MATLAB, I was surprised not to find many Forums on this topic. I love working on MATLAB and would like to share my knowledge with anyone who has a question or in need. I have found that many people know how to make a program but lack the basics. So I have started this forum for discussions as only discussion can help clear the fundamental concepts.

Contact Form

2 + 2 =

Reader Feedback

11 Responses to “FORUM FOR DISCUSSION ON MATLAB”

  1. Farhang says:

    Hi all,
    i am going to write a FOR loop in matlab and read the address of Images with Imread command.
    But i do not know how to write this loop and Imshow them after reading them.
    Can any body help me?
    Regards,
    Farhang

  2. admin says:

    @praphul
    i think you should refer a book….one good book to study dtft is oppenheim….here dtft is given in detail….

  3. praphul says:

    how do we calculate a dtft?

  4. vivek says:

    i am stuck up at a point in some code I am writing. I desprately need someone to tell me what i am doing wrong here. am posting the code below:
    %Declaring values of all variables
    co=1000
    r=150
    l1=1400
    l2=130
    % Calculating value of variable H
    h=1000*tan(15*(pi/180))
    %Creating a matrix with fii values in degrees
    fii=15:5:145
    %Converting fii Values to radians
    fii=fii.*(pi/180)

    Result=[];
    %Declaring the two equations that need to be solved
    eq1=inline(‘(co-r*sin(fi))^2 + x^2 – 2*(co-r*sin(fi))*x + (r*cos(fi))^2 + y^2 – 2*(r*cos(fi))^2*y – l2^2′,’x',’y')
    eq2=inline(‘x^2 + h^2 + y^2 -2*h*y – l1^2′,’x',’y')

    %Using a for loop to iterate through various values of fii and solve eq1
    %and eq2

    for i=1:26
    fi=fii(i)
    U=solve(eq1,eq2) % Error at this point
    if U.Y(1)>U.Y(2)
    Result(i,1)=U.X(1);
    Result(i,2)=U.Y(1);
    else
    Result(i,1)=U.X(2);
    Result(i,2)=U.Y(2);
    end
    end

    Error message:
    ??? Function ‘strncmp’ is not defined for values of class ‘inline’.

    Error in ==> strncmp at 25
    [varargout{1:nargout}] = builtin(‘strncmp’, varargin{:});

    Error in ==> maple at 44
    if strncmp(F,’trace’,5)

    Error in ==> solve at 75
    [t,stat] = maple(v);

    Error in ==> Path1 at 23
    U=solve(eq1,eq2)

    • admin says:

      @vivek
      instead of using inline use equations directly in the solve, something like

      U=solve(‘(co-r*sin(fi))^2 + x^2 – 2*(co-r*sin(fi))*x + (r*cos(fi))^2 + y^2 – 2*(r*cos(fi))^2*y – l2^2=0′,’x^2 + h^2 + y^2 -2*h*y – l1^2=0′,’x',’y')

      and also check the syntex of your first equation.

  5. niraj says:

    pls tell me what is the difference between dicreet time fourier transform and Z transform. and how can we calculate dtft in matlab?

  6. pooja says:

    can i use c programs with matlab. pls reply quickly.

    • admin says:

      @arijit
      SIMULINK is an interactive system for the nonlinear simulation of dynamical systems. It is a graphical, mouse-driven program that allows systems to be modelled by drawing a block diagram on the screen. It can handle linear, nonlinear, continuous-time, discrete-time, multivariable, and multirate systems. SIMULINK runs on workstations using X-windows, under MicroSoft Windows on the PC, and on the Macintosh. It takes full advantage of windowing technology, including pull-down windows and mouse interactions. SIMULINK is fully integrated with MATLAB, and, together with MATLAB and the Control System Toolbox, forms a complete control system design and analysis environment.

  7. arijit says:

    can you tell me what is a simulink??

    • admin says:

      @pooja
      MATLAB’s MEX-file facility allows user to use C subroutines as MATLAB m-files. It is also possible to use MATLAB as a computational engine for C subroutines.

Leave a Reply

Custom Search
SponsoredTweets referral badge

Enter your email address:

Delivered by FeedBurner

Chat Box


Loading

WP Shoutbox
Name
Website
Message
Smile
:mrgreen::neutral::twisted::arrow::shock::smile::???::cool::evil::grin::idea::oops::razz::roll::wink::cry::eek::lol::mad::sad:8-)8-O:-(:-):-?:-D:-P:-o:-x:-|;-)8)8O:(:):?:D:P:o:x:|;):!::?:

Archives

Improve the web with Nofollow Reciprocity.