필터 지우기
필터 지우기

plotting Matrix vs Scalar

조회 수: 6 (최근 30일)
random1072
random1072 2020년 3월 23일
댓글: darova 2020년 3월 24일
I am trying to graph My matrix (M_Det) in the x coordinate system and (-441.67 ) in the y coordinate system and not having any luck. Please help. I am supposed to graph the determinants of my matrix which are in M_Det compared to the force -441.67. The values of my determinats are D = 0.1584, D1 = 0.1086, D2 = 0.0076, D3 = -0.0070.
  댓글 수: 2
darova
darova 2020년 3월 23일
Can you attach the data? How do you want it to see? Do you have a picture of expected result?
random1072
random1072 2020년 3월 23일
I dont have any specific end result in mind just want it to look like a decent graph with the matrix values on the x axis and the value for BD (-441.67) on the Y axis. Attatched is my code.

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

채택된 답변

darova
darova 2020년 3월 23일
Try this
x = [0.1584
0.1086
0.0076
0.0070];
y = -441.67;
plot(x,x*0+y)
  댓글 수: 2
Obinna Princewill Okoro
Obinna Princewill Okoro 2020년 3월 24일
It's a straight line graph?? Cos I just tried it.
darova
darova 2020년 3월 24일
  • a decent graph with the matrix values on the x axis and the value for BD (-441.67) on the Y axis
It matches with the task. DOesn't it?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by