Click here to Skip to main content
12,697,311 members (28,384 online)
Rate this:
Please Sign up or sign in to vote.
See more: Matlab
Hi dear's,
i want drow below function on matlab,

function s = test(x)
s = 0;
for j = 2:5
     s=s+x(j+1)* sin(pi*x(j))-(x(j)^2 * cos(pi*x(j-1)));

my function have 6 dimension,so i think matlab can't drow this function,
is it any way for draw this function???
Posted 14-Jan-13 21:11pm
What do you think is the difference, between, say 4-dimensional and 6-dimensional? In all cases, you cut the space by fixing some coordinates but 1 (or 2), and draw the function in 2D or 3D. Then shift one of the parameters in other dimension, and draw again. Also, cut N-dimensional space in different directions and draw...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

of course,you are right
but how we can drow it???
Sorry, this is not an answer or "solution". Such posts are considered as abuse. Instead, you need to update your questions using "Improve question"; in other cases, you can use comments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100