I imported it using the second method you mentioned. When I tried the first one, it couldn't find the project in the folder I specified.
The process I followed when I tried the first method you mentioned (that I couln't make it work) was:
1. In matlab, I select the project folder example_mbd_rtw
2. I create a .zip with this folder.
3. I unzip it and put it in my desktop.
4. I open the DS and select Import>Existing Project into Workspace>

So I just tried the other way, in which I could find the file directly into the folder.
As you can see in the picture below, It seems that it can't find the definition of the variables, I am just assuming it is due the lack of the include folder but I might be mistaken. Maybe it's because something else is missing?

And it comes from here

Which I don't understand, is that the error is given only for 3 variables that are the same as the first one in the declaration, but the first one doesn't give any errors.

The error is only for 1, 2 and 3. 0 is OK.
Kind regards.