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.

Need help on "maybe" simple MatLab problem

Status
Not open for further replies.

Vauxdvihl

Member level 5
Joined
Dec 31, 1999
Messages
94
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
611
Hello,
i try to use in MatLab the following equation:


AD_Volt_m_max=(Rmax_Kenn./(Rmax_Kenn+(Vorwider_Rmax*Tol_Vorwider_min))*(VCC_Versorg*Tol_VCC_max-VCE_Min)-(Poly_Rmin*(VCC_Versorg*Tol_VCC_max))/(Vorwider_Rmax*Tol_Vorwider_min+Poly_Rmin+Rmax_Kenn))

Rmax_Kenn is:

Rmax_Kenn = 10
20
30
40
50


If receive in Matlab the following Error meassge which i do not understand:

??? Error using ==> minus
Matrix dimensions must agree.

Error in ==> Kennlinie at 74
AD_Volt_m_max=(Rmax_Kenn./(Rmax_Kenn+(Vorwider_Rmax*Tol_Vorwider_min))*(VCC_Versorg*Tol_VCC_max-VCE_Min)-(Poly_Rmin*(VCC_Versorg*Tol_VCC_max))/(Vorwider_Rmax*Tol_Vorwider_min+Poly_Rmin+Rmax_Kenn))


Can please somebody help?
Thanks
BR
Vauxdvihl
 

dante_t

Newbie level 5
Joined
Feb 8, 2008
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
SA
Activity points
1,324
upload all your *.m files so we can have a look at them
 

AndyECE

Member level 5
Joined
Oct 17, 2008
Messages
85
Helped
18
Reputation
36
Reaction score
5
Trophy points
1,288
Activity points
1,933
If you can't post your variables, then at least post the output of

size(Rmax_kenn)
size(Vorwider_Rmax)
etc...
 

theroundrock

Newbie level 1
Joined
Sep 14, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
??? Error using ==> minus
Matrix dimensions must agree.

The error means that the dimensions of your variables are not the same. Your row and column dimensions need to be the same for the operation you are attempting.

Post your .m file and we can help find the problem, otherwise just check the dimensions (and resulting dimensions of other operations) for all your variables in the particular problem equation.
 

Vauxdvihl

Member level 5
Joined
Dec 31, 1999
Messages
94
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
611
Thanks a lot
I have fixed it
BR
Vauxdvihl
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top