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...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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) ...
10년 초과 전 | 답변 수: 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 ...
10년 초과 전 | 답변 수: 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 ...
10년 초과 전 | 답변 수: 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...
10년 초과 전 | 답변 수: 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...
거의 11년 전 | 답변 수: 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;...
거의 11년 전 | 답변 수: 1 | 0
