From: kzhu on
Dear All,

This question has puzzled me for some time. I have some matlab code
written using the the object-oriented syntax as in Matlab 7.2. e.g

@DielectricMaterial
DielectricMaterial.m
getWaveNumber.m
getEMSpeed.m

On the CLI, I can type "help command_name" which returns the help file
associated with the command.

1. If I write similar document within the method: getWaveNumber.m, how
can I see the document through CLI?

2. Do I have to set the path pointing to the content of
@DielectricMaterial directory?

3. Is there a way that I can see all available method of the class
@DielectricMaterial without creating an object of the class?

Thank you.


kzhu
From: Matt on
kzhu <funny.haha(a)live.ca> wrote in message <hdf7tb$78l$2(a)news.eternal-september.org>...
> Dear All,
>
> This question has puzzled me for some time. I have some matlab code
> written using the the object-oriented syntax as in Matlab 7.2. e.g
>
> @DielectricMaterial
> DielectricMaterial.m
> getWaveNumber.m
> getEMSpeed.m
>
> On the CLI, I can type "help command_name" which returns the help file
> associated with the command.
>
> 1. If I write similar document within the method: getWaveNumber.m, how
> can I see the document through CLI?

help DielectricMaterial/getWaveNumber

>
> 2. Do I have to set the path pointing to the content of
> @DielectricMaterial directory?

You must NOT do so. The parent directory of @DielectricMaterial must be on the MATLAB path, but nothing within it.



> 3. Is there a way that I can see all available method of the class
> @ without creating an object of the class?

>>methods DielectricMaterial
 | 
Pages: 1
Prev: hide simulink warning messages
Next: MTF, NPS