MNPBEM Error – Issue with dot product in tripolygon file
Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do :)Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do 🙂 Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do 🙂 mnpbem, tripolygon, error, help, matlab code, matlab MATLAB Answers — New Questions
​