Feeds
提问
Combining two plots and adding color to points
matrix=load('Data'); x = matrix(:,1); y = matrix(:,2); fprintf('The maximum distance between two points is %3...
9 years 前 | 1 个回答 | 0
1
个回答提问
Average distance from the origin
matrix=load('Data'); x = matrix(:,1); y = matrix(:,2); distances = sqrt((x-0).^2 + (y-0).^2) sum(distances)./(size...
9 years 前 | 2 个回答 | 0
2
个回答提问
Color for points in scatter plot based on quadrants
matrix=load('Data'); x = matrix(:,1); y = matrix(:,2); matrix(x>0 & y>0,3) = 1; matrix(x<0 & y>0,3) = 2; m...
9 years 前 | 1 个回答 | 0
1
个回答提问
Determining Quadrants in a Matrix
matrix=load('Data'); x=matrix(:,1); y=matrix(:,2); if x>0 & y>0 matrix(:,3)=1 elseif x<0 & y>0 m...
9 years 前 | 2 个回答 | 0
2
个回答提问
While loop for a menu
options=menu('Options','Report Quadrants','Plot Data','Avg. Dist.','Max Dist.','Print Ascii','Exit Program') while (true) o...
9 years 前 | 3 个回答 | 0
3
个回答提问
Summation of an infinate series
I need help creating a code that computes the summation of L=1/(2^n) where the summation will stop when the difference between v...
9 years 前 | 1 个回答 | 0
1
个回答提问
Name Storing in a While Loop
while (true) f=input('Enter First Name:','s'); l=input('Enter Last Name:','s'); s1=strvcat(f,l) ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Name Storage with Repeat loops
f=input('Enter First Name:') l=input('Enter Last Name:') for [f,l] repeat strvcat(f,l) until f=Jed ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Counting Matrcies so that the numbers are next to them.
So I have a matrix with a phrase that repeats as many times as the user input it to. The problem is that I would like to have a ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Nearest Neighbor Algorithm Help!
Hey, so I'm struggling trying to find how to use the nearest neighbor algorithm (yes, NOT the command)in order to organize a gro...
9 years 前 | 1 个回答 | 0
1
个回答2
个回答提问
How do I display these matrices side by side incluing one with character strings.
Ok, so right now I am trying to display some stats and the problem is the fact that the matrix with characters in it will not al...
9 years 前 | 1 个回答 | 0
1
个回答提问
Combining Matrices Concerning Stats
I'm having trouble getting matrices in separate strings to function with one another. The matrices that I have: R=[1;2;3;4;...
9 years 前 | 1 个回答 | 0