Click here to Skip to main content
15,886,851 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi dear's,
i want drow below function on matlab,

VB
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)));
end



my function have 6 dimension,so i think matlab can't drow this function,
is it any way for draw this function???
thank's
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jan-13 2:44am    
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...
—SA

1 solution

of course,you are right
but how we can drow it???
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 3-Jun-16 18:58pm    
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.
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900