필터 지우기
필터 지우기

Evan, if I want to return back

조회 수: 2 (최근 30일)
imola
imola 2014년 8월 7일
댓글: imola 2014년 8월 8일
Dear, If I want to return back again the solution in GA which is string to fife numbers after applying it, suppose this is the string, I want to return the points in their position for example
0028023482100090411607002407264000021081060000000698132 to
[28.234821 , 9.411607 , 24.726400 , 21.810600 , 0.698132] don't forgot I deal with fixed matrix [20,5] and in the future it will be with random population
thanks
  댓글 수: 1
Evan
Evan 2014년 8월 7일
There is no need to address your question to a single user here. It is absolutely fine to provide a general explanation of your problem for your title, even for follow-up questions like this one.

댓글을 달려면 로그인하십시오.

채택된 답변

Evan
Evan 2014년 8월 7일
편집: Evan 2014년 8월 7일
Disclaimer: Not having experience with GAs myself, I can offer something that will make what you're wanting to do work, but I have no knowledge of how convenient, accurate or efficient it will be for your purposes.
s = '0028023482100090411607002407264000021081060000000698132';
m = reshape(s,11,[])';
v = [str2num(m(:,1:4)) + str2num(m(:,6:end))/1e6]';
  댓글 수: 1
imola
imola 2014년 8월 8일
thank you very much Evan that's great

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by