more convenient way to present a result of a symbolic calculation
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
hello everyone,
is there a more convenient/elegant way of presenting the result? I am adding the code:
clear all
close all
clc
syms t y(t) b m k w
dsolve(diff(y,t,2)+(k/m)*y==(1/m)*cos(w*t))
I am attaching a photo in which we can see the desirable way of presentation I am interested in.

thanks!
댓글 수: 0
채택된 답변
  madhan ravi
      
      
 2018년 11월 4일
        
      편집: madhan ravi
      
      
 2018년 11월 4일
  
      Use
pretty(sol)
Or if you use live editor you can see the result like the one in your question
댓글 수: 5
추가 답변 (1개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



