matlab num2str

전전컴/기타 2013. 12. 12. 18:33

disp(['string']);

에서 숫자를 표시하고 싶을때 num2str() 함수를 사용하도록 한다.


사용 예>






설정

트랙백

댓글

Pspice로 undamped response를 구하고자 했는데 잘안된다

transient 응답 맞게 한거 같은데...


http://ewh.ieee.org/soc/es/Aug1996/005/cd/srlczs-u.htm


에 있는 코드로 급하게 해결..

설정

트랙백

댓글


mult.m


function C = mult( A, B)

    if(size(A,2)~=size(B,1))

        error('improper matrices size! Retype correct matrices A and B');

    end

   

    temp=zeros(size(A,1),size(B,2));

    sum=0;

    for i=1:size(A,1)

       for j=1:size(B,2)

            sum=0;

            for k=1:size(A,2)

                sum=sum+A(i,k)*B(k,j);

            end

            temp(i,j)=sum;           

       end

    end

    

    C=temp;

end

설정

트랙백

댓글

basic

전전컴/기타 2013. 9. 11. 01:11

What's your name?
Where are you from? (Where do you come from?)

What's your surname ( family name)?
What's your first name?
What's your address?
Where do you live?
What's your telephone number?
How old are you?
When / Where were you born?
Are you married? / What's your marital status?
What do you do? / What's your job?
Where did you go?
What did you do?
Where were you?
Have you got a car (job, house, etc).?
Have you got any children (friends, books, etc(.?
Can you play tennis (golf, football, etc).?
Can you speak English ( French, Japanese, etc).?
Nice to meet you.
How are you?
How can I help you? (May I help you?)
I'm looking for a sweater.
Can I try it on?
How much does it cost? (How much is it?)
How would you like to pay?
Can I pay by credit card (check / debit card?)
Have you got something bigger ( smaller / lighter / etc.)?
What's that?
What time is it?
Can / May I open the window?
Is there a bank (supermarket, pharmacy … near here)?
Where is the nearest bank ( supermarket, pharmacy, etc.)?
Who wrote / invented (painted, etc.)?
Is there any water (sugar, rice, etc.)?
Are there any apples (sandwiches, books, etc.)?
Is this your (his, her... book, ball, house, etc.)?
Whose is this (that)?
What do you like?
What does he look like?
What would you like?
What is it like?
What's the weather like?
Would you like some coffee (tea, food)?
Would you like something to drink (eat…)?
What's it about?
What do you think about your job (that book, Tim, etc.)?
How big (far, difficult, easy) is it?
How big (far, difficult, easy) are they?
How was it?
What are you going to do tomorrow (this evening, next week, etc.)?
What shall we do this evening?
Why don't we go out (play tennis, visit friends... this evening)?

설정

트랙백

댓글

실행!

윈도우7 바로가기 아이콘 깨졌을때.bat



taskkill /f /im explorer.exe

attrib %userprofile%\appdata\local\iconcache.db -s -r -h

del /q %userprofile%\appdata\local\iconcache.db

start explorer.exe



설정

트랙백

댓글