رفتن به مطلب

ehsan_faal

کاربر انجمن
  • تعداد ارسال ها

    112
  • تاریخ عضویت

  • آخرین بازدید

تمامی مطالب نوشته شده توسط ehsan_faal

  1. سلام. [Hidden Content] [Hidden Content]
  2. ehsan_faal

    درخواست تولباکس آنتن برای matlab 2012a

    فقط به عنوان یه توصیه، از متلب برای محاسبات عددی مورد نیاز در کارهای میدانی میشه استفاده کرد(متامتریال و fss و از این دست ادوات).اما در حالت کلی پیشنهاد بنده به شما اینه که کارهاتون رو با cst رفع و رجوع کنید، cst قابلیت های بینظیری حتی برای کدزنی های میدانی هم ارائه میده.متاسفانه آموزش زیادی برای وجود نداره ولی خب بسته به علاقه و پشتکارتون میتونید طی چند سال به مهارت لازم توی این نرم افزار برسید. موفق باشید
  3. ehsan_faal

    محل تقاطع صفحه و خط

    میشه یه مثال بزنید؟ شاید بهتر بشه کمک کرد
  4. ehsan_faal

    محل تقاطع صفحه و خط

    برنامه‌ی خاصی که نداره شما میتونی همون الگوریتم رو توی متلب پیاده کنی. اینجا رو هم ببینی بد نیست.
  5. ehsan_faal

    محل تقاطع صفحه و خط

    سلام. مطمئن نیستم منظورتون اینه که با متلب این کارو انجام بدین یا نه، اما به هر حال روال کلی برای این کار رو میتونین توی این لینک یا این لینک دنبال کنید.
  6. حتما همتون(همه برقیا) این تجربه رو دارین که بعضی از پنجره های آلتیوم اونقدر بزرگن که یه مقداریش رو نمیتونیم ببینیم. با کمک این نرم افزار مشکل تغییر سایز این پنجره ها حل شده و به راحتی میشه اونها رو resize کرد. اول یه پنجره رو انتخاب کنید و بعد سایزش رو تغییر بدید: دانلود: [Hidden Content]
  7. یه بار figure رو سیو کنید و بعد توی ام-فایل بعدی قبل از رسم اون رو load کنید. فکر میکنم باید جواب بده. [color=#373737][font=Courier 10 Pitch]saveas(f, 'example1.fig') [/font][/color][color=#373737][font=Courier 10 Pitch]g = openfig('example1.fig');[/font][/color] فقط دقت کنید که f اینجا هندل figure هست که اصلا میتونید به جاش بنویسید gcf
  8. فقط کافیه که تو ام فایل اولی قبل از شروع قسمت پلات یه figure باز کنید و بهش یه عددی رو بدید و توی ام فایلهای بعدی هم قبل از قسمت پلات از figure با همون شماره استفاده کنید. [Hidden Content]
  9. اینجوری: T=linspace(0,10,1000);P1=sin(T); P2=cos(T); plot(T,P1,'r','linewidth',2,'DisplayName','First Plot'); hold on; plot(T,P2,'blue','linewidth',2,'DisplayName','Second Plot'); legend show
  10. فکر کنم برداشت شما از حرفای من درست نباشه،من خودم درسای تخصصیم رو خیلی خوب فهمیدمو پاس کردم.مثلا من توی رشته ی خودم توی زمینه میدان علاقم رو پیدا کردم. چندتا دانشجوی ارشد رو استاد میسپرد به من تا توی کارای نرم افزاری ساپورتشون کنم. خلاصه من واسه علاقم چیزی کم نذاشتم و حتی یکی از مباحث درسی رو بعد از چند ماه پیگیری تونستم ازش یه مقاله داخلی در بیارم. من از این میسوزم که اونا همش رو کاغذ بود در عمل هیچ کدومشون به کار نمیاد.
  11. ehsan_faal

    آموزش برنامه نویسی اندروید

    این آموزشتون رو قراره با اندروید استودیو پیش ببرید یا با دلفی؟
  12. دقیقا مشکل الانه من همینه، اعتماد به نفس صفر. اصلا نمیدونم چیزی که خوندم کجا به کار میاد، والا تو دانشگاه به اساتید همین حرفو میزدیم میگفتن شما وقتی بری یه جا استخدام شی خودشون واست دوره میذارن چیزایی که لازم باشه رو بهت میگن ولی وقتی اومدیم بیرون دیدیم اصلا اینجوری نیست. واقعا اتلاف عمر بود این دانشگاه. اصلا هیچ ایده ای واسه آیندم ندارم
  13. بنده هم با مدرک لیسانس دانشگاه دولتی به شغل شریف بنایی مشغولم(البته هنوز سربازی نرفتم). بد نیست ولی از 4 سالی که الکی وقتمو تلف کردم حیفم میاد.
  14. این چیزی که من گفتم نقل قول از پروفسور سمیعی بود مه به تازگی مصاحبه ای از ایشون رو توی اخبار نشون داد. مطمئننا حرف ایشون با توجه به سابقه علمی ای که دارن حرف معتبری هستش.
  15. البته بد نیست این نکته رو هم بگیم که هنوز از لحاظ علمی مضر یا مفید بودن بودن این امواج برای بدن تایید نشده
  16. ehsan_faal

    مقدمه ای بر تئوری آنتن

    اینم کدهای متلب کتاب بالانیس: [Hidden Content] اگه موافق باشید توی همین تاپیک کم کم آموزش شبیه سازیه چندتا آنتن ساده رو با نرم افزارای cst و hfss واسه بچه ها شروع کنیم. من خیلی وقته میخوام یه همچین آموزشایی سروع کنم ولی خب علاقمندان به میدان تعدادشون کمه،واسه همین دودل بودم
  17. سوال 25: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F10 = 55 F11 = 89 F12 = 144 The 12th term, F12, is the first term to contain three digits. What is the index of the first term in the Fibonacci sequence to contain 1000 digits? function Problem25(D)[/left] tic Phi = (1+sqrt(5))/2; Term = ceil((D-1 + log10(5)/2) / log10(Phi)); toc disp(Term) [left]end Problem25(1000)[/left] Elapsed time is 0.000007 seconds. 4782 [left]
  18. سوال 24: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are: 012 021 102 120 201 210 What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9? راه حل عادی با استفاده از توابع متلب: function S=Problem24(InputVector,Number) tic ModifiedSource=sortrows(perms(InputVector)); S=ModifiedSource(Number,:); toc [right][color=#000000][font=Trebuchet MS][left][color=#222222][font=Tahoma]end[/font][/color][/left] [/font][/color][/right] S=Problem24(0:9,1e6) Elapsed time is 4.664529 seconds. S = [right][color=#000000][font=Trebuchet MS][left][color=#222222][font=Tahoma] 2 7 8 3 9 1 5 4 6 0[/font][/color][/left] [/font][/color][/right] راه حل ارائه شده با استفاده از کمی ریاضیات: [/font][/color][left]function S=Tricky24(Vector,Index)[/left] [/right] tic N=numel(Vector); S=nan(size(Vector)); List=Vector; if Index<factorial(N) Target=Index; for i=1:N FeedFactorial=N-i; Fact=factorial(FeedFactorial); FactorialCoeff=1; while(FactorialCoeff*Fact<Target) FactorialCoeff=FactorialCoeff+1; end S(i)=List(FactorialCoeff); List(FactorialCoeff)=[]; Target=Target-((FactorialCoeff-1)*Fact); end else error('Wrong Input') end toc [right][left]end[/left] [color=#000000][font=Trebuchet MS] [/font][/color] [left]S=Tricky24(0:9,1e6)[/left] [/right] Elapsed time is 0.001419 seconds. S = [right][left] 2 7 8 3 9 1 5 4 6 0[/left] [color=#000000][font=Trebuchet MS]
  19. سوال 23: A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number. A number n is called deficient if the sum of its proper divisors is less than n and it is called abundant if this sum exceeds n. As 12 is the smallest abundant number, 1 + 2 + 3 + 4 + 6 = 16, the smallest number that can be written as the sum of two abundant numbers is 24. By mathematical analysis, it can be shown that all integers greater than 28123 can be written as the sum of two abundant numbers. However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is less than this limit. Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers. function S= Problem23 tic UpperBound=28123; Counter=1:UpperBound; ListOfAbundant=nan(1,UpperBound); for I=Counter if IsAbundant(I) ListOfAbundant(I)=I; end end ListOfAbundant(isnan(ListOfAbundant))=[]; [T1,T2]=meshgrid(ListOfAbundant); SumPair=unique(sum([T1(:),T2(:)],2)); S=sum(Counter(~(ismember(Counter,SumPair)))); toc end function Flag=IsAbundant(x) SumOfDivisors=1; for Index=2:floor(sqrt(x)) if mod(x,Index)==0 if Index==sqrt(x) SumOfDivisors=SumOfDivisors+Index; else SumOfDivisors=SumOfDivisors+Index+x/Index; end if SumOfDivisors>x Flag=true; return; end end end if SumOfDivisors<=x Flag=false; return; end end Elapsed time is 1.999691 seconds. S = 4179871
  20. سوال 21: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers.For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; therefore d(220) = 284. The proper divisors of 284 are 1, 2, 4, 71 and 142; so d(284) = 220.Evaluate the sum of all the amicable numbers under 10000. [/font][/color]function Sum=Problem21(n) Interval=1:n; Interval=Interval(isprime(Interval)==0); Sum=0; for Counter=Interval S1=GetSumOfDividers(Counter); if(S1~=Counter && S1~=1) if ((S1~=Counter)&&(GetSumOfDividers(S1)==Counter)) Sum=Sum+Counter; end end end end function DL=GetSumOfDividers(n) DL=1; for i=2:floor(sqrt(n)) if mod(n,i)==0 DL=DL+i+(n/i); end end end [color=#000000][font=Trebuchet MS] [/font][/color] ans = 31626 Elapsed time is 0.192275 seconds. [color=#000000][font=Trebuchet MS]
  21. ehsan_faal

    تبدیل عدد اعشاری منفی به باینری

    خب شما تو مبنای ده جمع بزن بعد به باینری تبدیل کن،نمیشه؟
  22. نه متاسفانه
  23. سوال 19 رو هنوز راه حل مناسبی واسش پیدا نکردم. و اما سوال 20: سعی کردم توی این سوال چند تا ترفند با حال رو نشون بدم. یکیش عبارات با قاعده و یکیش هم محاسبات سمبولیک: n! means n × (n − 1) × ... × 3 × 2 × 1For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.Find the sum of the digits in the number 100! [color=#222222][font=Tahoma]function Sum=Problem20(n)[/font][/color] InitialDigits=32; InputString=strcat(num2str(n),'!'); AnswerString=char(vpa(InputString,InitialDigits)); while regexp(AnswerString,'e') InitialDigits=InitialDigits*2; AnswerString=char(vpa(InputString,InitialDigits)); end AnswerString=strsplit(AnswerString,'.'); AnswerString=AnswerString{1}; Sum=sum(cell2mat(arrayfun(@(S) str2double(S),AnswerString,'UniformOutput',false))); [color=#000000][font=Trebuchet MS][color=#222222][font=Tahoma]end[/font][/color][/font][/color] [color=#222222][font=Tahoma]ans =[/font][/color] 648 [color=#000000][font=Trebuchet MS][color=#222222][font=Tahoma]Elapsed time is 0.097125 seconds.[/font][/color][/font][/color]
  24. سوال 18: راه حل عادی ای که به ذهن میرسه امتحان تمام حالاته، ولی روش حل مسئله ای به اسم برنامه نویسیه پویا هست که واقعا آدم از نحوه برخورد این روش با حل مسئله شاخ درمیاره.نمونش تو همین مسئله. By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find the maximum total from top to bottom of the triangle below: 75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 63 67 99 65 04 28 06 16 70 92 41 41 26 56 83 40 80 70 33 41 48 72 33 47 32 37 16 94 29 53 71 44 65 25 43 91 52 97 51 14 70 11 33 28 77 73 17 78 39 68 17 57 91 71 52 38 17 14 91 43 58 50 27 29 48 63 66 04 68 89 53 67 30 73 16 69 87 40 31 04 62 98 27 23 09 70 98 73 93 38 53 60 04 23 NOTE: As there are only 16384 routes, it is possible to solve this problem by trying every route. However, Problem 67, is the same challenge with a triangle containing one-hundred rows; it cannot be solved by brute force, and requires a clever method! ;o) function Mx=Problem18() tic SourceMatrix=dlmread('Source.txt'); SumHolder=zeros(size(SourceMatrix)); SumHolder(length(SourceMatrix),:)=SourceMatrix(length(SourceMatrix),:); for i = length(SourceMatrix)-1:-1:1 for j = 1:i SumHolder(i,j) = SourceMatrix(i,j) + max(SumHolder(i+1,j),SumHolder(i+1,j+1)); end end Mx=SumHolder(1,1); toc end Elapsed time is 0.002292 seconds. ans = 1074
×
×
  • اضافه کردن...