This forum is suggested to format HTML more smoothly when the user uses carriage return to indicate a new line because the code ends up being unreadable.
Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How do I pass subsets of matrices to scatter?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to draw a small graph based on regression. This code does not work.
function [ score ] = classifyData( file )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
% Written by J. Camilleri B.Sc IS&M
load(file);
%scatter(data(:,0), data(:, 1), 'o'); #debug
%r = mean(file(:,0));
%c = sum(file(:,1));
title('Distribution of iris data');
xlabel('data');
ylabel('numeric data');
score = mean(file);
scatter(r,c,'o');
end
%References #BUG - originally written in Python.
%1. AIMotion blog - http://pythonbrasil.github.io/pythonbrasil11-site/
%using regression.
%2. Archive at ics.edu.mt/ UoM.
References 1. Article at http://aimotion.blogspot.com.mt/2011/10/machine-learning-with-python-linear.html (Python)
댓글 수: 3
Guillaume
2015년 11월 25일
This forum has a proper way of formatting code. I've done it for you this time. To format some text as code, you can either:
- paste your code, select it all, and click on the {}Code button.
- put two blank spaces in front of each line of code.
Note that when you write your post, there is also a help button which gives more details on how to format your post.
Guillaume
2015년 11월 25일
"This code does not work".
You now know one thing that does not work. We can write a million others that do not work, but we certainly have no clue about what would work since you haven't given us any detail about what you want, what inputs you have and what should be done with them.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!