run on matlab

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

run on matlab

Colin Macdonald-2
Can someone run these commands and paste the output (three numbers) back
to me?  jpg/png of the figure might be useful but not essential.

thanks,
Colin

- - - - - - -

format long
figure(1); clf;
sphere(24);

P = [8 12 7.3];
set (gca, 'cameraposition', P)

U = [0 2 2];
set (gca, 'cameraupvector', U)

T = [0.5 -0.3 -0.3];
set (gca, 'cameratarget', T)

h = camlight(45, 20);
get(h, 'position')

Reply | Threaded
Open this post in threaded view
|

Re: run on matlab

Michele Ginesi
Dear Colin,

I ran on Matlab R2016a

ans =

   -3.301207088157028  15.474861455795915   1.115828634895176


On 31/05/16 08:56, Colin Macdonald wrote:

> Can someone run these commands and paste the output (three numbers) back
> to me?  jpg/png of the figure might be useful but not essential.
>
> thanks,
> Colin
>
> - - - - - - -
>
> format long
> figure(1); clf;
> sphere(24);
>
> P = [8 12 7.3];
> set (gca, 'cameraposition', P)
>
> U = [0 2 2];
> set (gca, 'cameraupvector', U)
>
> T = [0.5 -0.3 -0.3];
> set (gca, 'cameratarget', T)
>
> h = camlight(45, 20);
> get(h, 'position')
>
--
Michele Ginesi


sphere.jpg (39K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: run on matlab

mmuetzel
In reply to this post by Colin Macdonald-2
Colin,

ans =
  -3.301207088157029  15.474861455795915   1.115828634895176

regards,
Markus
Reply | Threaded
Open this post in threaded view
|

Re: run on matlab

siko1056
In reply to this post by Colin Macdonald-2
Dear Colin,

Running Matlab R2016a I get:

ans =

  -3.301207088157028  15.474861455795915   1.115828634895176

And the attached graphic.



Best,
Kai
Reply | Threaded
Open this post in threaded view
|

Re: run on matlab

Colin Macdonald-2
In reply to this post by Colin Macdonald-2
On 31/05/16 06:02, Ben Abbott wrote:
>  -3.301207088157029  15.474861455795915   1.115828634895176

Thank you everyone who replied!

Colin