Why does the figure show black image only in Matlab?

Vector Addition in MatLab...?

  • I'm trying to write a vector addition program in MatLab and can't figure out how to do it. This is the first time I am using MatLab to do anything and it is much different than the C++ programming I am used to. If someone could show me a completed vector addition which I could use as a template I would be very appreciative.

  • Answer:

    MatLab is way easier than c++. You are probably trying to make this harder than it is. If you have defined vector a =[ 1 2 3] and vector b=[2 3 4], than just type a+b to add them. Yes, it's really that simple! MatLab is short for Matrix Laboratory, and it is very easy to manipulate matrices or vectors in MatLab, once you learn the syntax.

Inferno1... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You Can Do it By treanting the vector one dimentional matrix. And adding the simpley by + .varibles are defaultly matix in Matlab

mohammad agakhani

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.