is it built in function or a structure ?

This is from the matalb documentation of reconfigurable intelligent surfaces. helperRISSurface is function or a structure ? how can i pass parameters?
i tried to rum this and i am getting error here. i have uploaded the screenshots
kindly help me
thank you.
=========================================================================
ris = helperRISSurface('Size',[Nr Nc],'ElementSpacing',[dr dc],...
'ReflectorElement',phased.IsotropicAntennaElement,'OperatingFrequency',fc)
ris =
helperRISSurface with properties:
ReflectorElement: [1x1 phased.IsotropicAntennaElement]
Size: [10 20]
ElementSpacing: [0.0054 0.0054]
OperatingFrequency: 2.8000e+10
=====================================================================

 Accepted Answer

It is a helper function that is included with this example. On the upper right corner of the example page, use the 'Open in MATLAB Online' or copy and run the 'Copy Command' in your MATLAB Command window to download the example and supporting files to your MATLAB Instance.

16 Comments

Note that if you are running a version earlier than R2023b then the example does not exist.
can you help me to get the folders
I don't know how
If you are running R2023a or earlier, the example does not exist.
If you are running R2023b or later, then
openExample('phased/IntroductionToRISExample')
should work. There is, however, the possibility that you need to install documentational locally; see https://www.mathworks.com/help/install/ug/install-documentation-using-internet-connection.html
If you install the documentation locally, you can only access examples for products you have installed. If you use the online documenation, you can access any example.
The openExample workflow will download the example files to a local folder.
If you do not have version R2023b or newer installed but have access to MATLAB Online, use the Open in MATLAB Online option. It is always on the latest version. That wlil add the files to you MATLAB Drive.
The openExample workflow will download the example files to a local folder.
... In theory. In practice, it sometimes messes up fetching some of the files from the server.
This error appears when I try to run it
and I cannot add it to online Matlab
You need a license for the Phased Array System Toolbox.
How do I get a license?
Click on the "Learn how to get this product" and follow the instructions there?
You might need to purchase a license for the product.
thank you
and this error?
I can't duplicate. What version of MATLAB are you using?
I have matlab 2023a I can ran this example?
As Walter pointed out, this example was introduced in R2023b. You will need that version of MATLAB to access it using the openExample command.
However, I don't see anything in the code that would prevent it from running in R2023a.
Hi Cris,
I want to draw the pattern of this ris. How can I do that?.
Please clarify what 'this ris' is.
I suspect that "this ris" refers to the variable "ris" returned from helperRISSurface()

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!