Hi all
I want to show matlab graph in scope how can i do this ?
please give me answer

 採用された回答

A Jenkins
A Jenkins 2014 年 4 月 22 日

0 投票

6 件のコメント

mutah
mutah 2014 年 4 月 24 日
Hi dear
I follow your steps but the matlab gave me this message
Warning: The model 'untitled' does not have continuous states, hence Simulink is using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog Warning: The model 'untitled' does not have continuous states, hence Simulink is using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog
A Jenkins
A Jenkins 2014 年 4 月 24 日
Find the Configuration Parameters dialog and make the suggested adjustments. (It may continue to make suggestions until it is happy with your settings.)
Simulation->Model Configuration Parameters->Solver->Solver: Discrete
mutah
mutah 2014 年 4 月 24 日
編集済み: mutah 2014 年 4 月 24 日
this is the matlab code i want to plot it in scope
please help me to solve this problem
fs=20E9;%sample rate-10 times the highest frequency
ts=1/fs;%sample period
t=[(-4E-9-ts):ts:(4E-9-ts)];%vector with sample instants
t1=.5E-9;%pulse width(0.5 nanoseconds)
x=(t/t1).*(t/t1);%x=(t^2/t1^2)(square of (t/t1)
A=1;%positive value gives negative going monopulse;neg value gives %positive going monopulse
y=A*(t/t1).*exp(-x);%first derivative of Gaussian pulse function
plot(t,y)
A Jenkins
A Jenkins 2014 年 4 月 24 日
So use
[t',y']
in your "from workspace" block.
And change the simulation run time (next to the play block) to be your tmax (3.9500e-09).
You also have a to solve the problem where you have negative time. Since simulink doesn't do negative time. Perhaps add an offset?
mutah
mutah 2014 年 4 月 25 日
dears it's still the same problem no plot display in scope
A Jenkins
A Jenkins 2014 年 4 月 25 日

サインインしてコメントする。

その他の回答 (1 件)

mutah
mutah 2014 年 5 月 13 日

0 投票

I need some help in other problem please
How i can generonate pulse one between 19 and 20 then zeros until 29-30 pulse one after that the pulse repeat 0001,0001,0001.............. Also, I want to show it on scop

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

質問済み:

2014 年 4 月 22 日

回答済み:

2014 年 5 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by