Using function simple equation doesn't work
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Krystian Wiewiór
am 8 Mai 2019
Kommentiert: gonzalo Mier
am 9 Mai 2019
Hello guys,
Could you tell me why my function doesn't work, without block "fcn" - "Pikr1" everything works and scope shows me results.
How to use this "fcn" block, I would like to put there my own variable which is counted from output "p".
![matlabscreeen.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218623/matlabscreeen.jpeg)
Greetings,
Krystian
0 Kommentare
Akzeptierte Antwort
gonzalo Mier
am 8 Mai 2019
Bearbeitet: gonzalo Mier
am 8 Mai 2019
Next time, I ask you to add more info so people can help you easily and not only with a photo.
The problem here is the block fcn "Pikr1" accepts as parameter a formula with the input u. So if you want to do p*p you have to input in the fcn block the formula u*u.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Block Libraries finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!