Here is what I wrote, but it is not beautiful. Do you think you can write it in a simpler and better way?
Another question is I’d like to add Legends saying dashed line is “Receiver efficiency” and solid line is “system efficiency”, but I couldn’t do that.
Any help will be very appreciable. Thank you.
Hi David, Yes, this is what I was looking for. It looks simpler and better. I don’t fully understand “@@ # & /@”, but I guess it takes time. Thank you so much for your help.
It actually gives me an error saying “An improperly formatted option was encountered. The left-hand side of the option was not a symbol or string.” I will take a look at the documentation about “Apply @@@” Thank you for your help.
I cannot verify any error. I would like to propose some further changes. In particular below I replaced in your definition of the functions receff and syseff “=” with “:=”, which might be important. So your already nice code together with Davids improvements and my minor remarks now looks like:
You’re right. I just try again by replacing @@ # & /@ with @@@, now, it does not give me any error. I don’t understand why there was the error before. But I had similar issue before. There was several codes I wrote and they worked fine initially and at some point stopped working because they generated errors. I think I need more learning to eventually understand this issue. In addition, I also replace = with :=, which also works well. I’m still not good enough to see the difference between = and := in real usage. Your suggested code definitely looks better. Thank you so much for your help. I really appreciate it.