EN / USD
32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
What is the function of [~,n]=size(p) in MATLAB?
TEP , The Engineering Projects , Calender Question: 06-Mar-2017
TEP , The Engineering Projects , Category In: MATLAB Projects
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]
TEP , The Engineering Projects , Icon Answer: 0 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Tags
PLC
Robot
STM32
Arduino
AI
ESP32
Ladder Logic
PLC Projects
Programming
Communicates STM32
PLC Projects
Communicates PLC
Font Style
Alignment
Indenting and Lists
Insert Media
Insert Items

Want to leave an answer!

Word Count :0 Draft Saved at 12:42 am.