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 program for summing two integers

Status
Not open for further replies.

electim2004

Member level 1
Member level 1
Joined
Apr 17, 2005
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,493
dear
please write program to sum two integer.
thanks.
 

Re: learn matlab

simply

c = a + b;
 

Re: learn matlab

the fist u must declear
syms a b
c = a + b;
 

Re: learn matlab

electim2004 said:
dear
please write program to sum two integer.
thanks.

f=1
g=2
c=f+g
then the matlab replay with c=3
so trivial
 

Re: learn matlab


try this
 

Re: learn matlab

simply declare the variables.
a=6
b=5
c=a+b
will give 11
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top