Bug in PCB antenna designer ?

4 次查看(过去 30 天)
Mathias
Mathias 2024-5-27
回答: Siraj 2024-7-29
Hello, I'm having a trouble with pcb designer, for example here I'm trying to set Ly as the length shown in the properties of y, which I've done with many others, any tip ? Also I have trouble trouble saving my sessions, if I save it sometimes there will be no save at all and I'll lost my previous work. Thank you for help, Mathias Bedossa.

回答(1 个)

Siraj
Siraj 2024-7-29
I understand you want to set the "Length" property of "y" in the PCB stack, but you're encountering the following error: "Invalid argument at position 1. Value must be a scalar."
From the error screenshot you attached, it appears you want to set the "Length" to "9*(L2-W2) + W2". You can copy this expression and paste it into the MATLAB Command Window to check its value and verify if it is a scalar. The error suggests that the value is not a scalar.
For better understanding, here is a code example demonstrating how the result of the expression can vary based on the inputs, showing it might be a vector or a scalar:
L2 = [1 2];
W2 = 1;
ans1 = 9*(L2-W2) + W2;
disp(ans1);
1 10
L2 = 2;
W2 = 1;
ans2 = 9*(L2-W2) + W2;
disp(ans2);
10
If you're having trouble saving the session, please restart MATLAB and execute the following commands to refresh the functions and files in the system caches:
rehash toolbox
rehash toolboxcache
After this, try saving again and do not close MATLAB until the MATLAB kernel finishes saving the data. You can check the bottom left corner to see if the kernel is busy and ensure the save is complete.
For more details about "rehash", please refer to this documentation: https://www.mathworks.com/help/matlab/ref/rehash.html
If this information doesn't solve your issue, you can reach out to MathWorks support using the following link:
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Get Started with Antenna Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by