What is the function of [~,n]=size(p) in MATLAB?
I've searched on the internet, but I can't figure out what this expression is useful for.
[code]function [val]=f_obiectiv(p) % functia obiectiv din problema celor n regine
%{
gradul de "neconformitate" a unei permutari: numarul de pozitii distincte de pe tabla
de sah pentru care reginele plasate in acele pozitii sunt in situatie de atac
%}
[~,n]=size(p);
val=0;
for i=1:n
for j=i+1:n
if(abs(i-j)==abs(p(i)-p(j)))
val=val+1;
end;
end;
end;
% calitatea permutarii: numarul total de perechi de pozitii (regine) posibile -
% numarul de perechi "neconforme"
val=n*(n-1)/2-val;
end[/code]
ecg simulation using matlab software
am working on a ecg simulation using matlab software.. i need to develop a software for qrs detection in matlab by any technique.. if any one can help me please let me know in few days please
Circle Detection In Real Time Using Webcam in Matlab
I want to recognize Round Shapes in Real time and detect RGB color of object I have Done Color Tracking Through webcam in matlab
But I m Finding it difficult to recognize the round shapes directly through a webcam..
I m using Algorithm as provide in matlab demos 4*pi*area/perimeter^2
But Don't Know how to proceed through codes
Someone please guide me through how to start the coding
Motion Detection in Matlab
hello guys!!..
can anyone teach me how motion detection done in matlab??
thanks..
or is there anyone who can give his or her code for that,,
Thank You..
Matlab simulation of six legged robot
I am an electro-mechanical engineering student at UCT in South Africa... Im doing my thesis topic on simulation of walking pattern of a six legged robot...the robot is very similar to one of the hexabots that I saw on youtube that a Carnige Mellon University student posted...I would like to know if there is any particular reading(s) that you would recommend that could help me develop this simulation or learn about simulation of six legged robots in general...Im actually quite a newbie but I really want to work hard on this project so if you know of any particular reading that would help me and that has useful information on simulation and walking patterns it would be cool...The robot has six legs and it has three actuators per leg...Thanks in advance...
MATLAB for imaging process
write a MATLAB code for zooming and shrinking an image by bilinear and bicubic interpolation. the input to your program is:
1)image
2)zooming/shrinking parameters along the image rows and columns
3)interpolation method
should include:
1)M-file
2)figure 1 showing the input image that is zoomed by 1.7 along rows and 2.4 along colomns using: a) bilinear interpolation, b) bicubic interpolation
3) figure2 showing the input image that is shrunk by 4.3 along rows and 3.6 along columns using a) bilinear interpolation, b) bicubic interpolation
image processing using matlab
Hi guyz need little help i am curruntly working on my project and need to know that how can i detect RGB colour recognization using matlab and how can i use it with arduino because i want to use camera to detect the colour and perform the other task but i have no idea about it how can i do this ?. kindly if any body knows that post it here THANKS..
My project is simple. three objects colour(R,G,B Colour objects) moving on conveyer belt detect by the camera using matlab then moves each object in different direction.
Circle recognition
I am new in the field of image processing. i want to detect circles in an image using database (means i have an image of circle in database and i have to compare images having circles with this database image). i am using MATLAB. can any one help?
Matlab internal rate of return
You'll have to be easy on me, I am new to matlab and SO. I am having an issue using the matlab solver to calculate internal rate of return(IRR). I saw that the financial toolbox in matlab had a function for this, however I don't believe I have it installed and did not want to get the trial version on their site.
Given the simple nature of my particular IRR calculation, I figured it would be easy enough to simply code in matlab. It is the same yearly cashflow, so what I put into matlab was as follows:
[code]syms x k;
IRR = solve(investment == yrSavings* symsum((1+x)^-k,1, nYears));[/code]
It doesn't fail, and in fact gives a number. The only problem is the the result is incorrect! I type in the IRR manually and it never equals the investment. Using wolframalpha I found the actual solution, went back and manually typed in wolframalpha's answer, and the symsum function returned the correct result. I'm not sure what's up with the solver!