Simple input-output function problem

Hi,
I have some trouble with this function. I'm trying to make an order function, where i input ordernumber(BestNr), productnumber(varenr) and amount(antal), which should return the product(varebetegnelse) and total price(pris) to BestNr.
function[varebetegnelse,pris]=Bestil(BestNr,varenr,antal)
obj.ordrer(varenr).varer=[obj.ordrer(varenr).varer,varenr];
obj.ordrer(varenr).antal=[obj.ordrer(varenr).antal,antal];
varebetegnelse=obj.varebetegnelser(varenr);
pris=antal.*obj.stykpris(varenr);
end
What am i doing wrong?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2012년 4월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by