필터 지우기
필터 지우기

How to generate a variable for step size of Powergui in the workspace?

조회 수: 2 (최근 30일)
Tejas Rivonkar
Tejas Rivonkar 2020년 2월 10일
댓글: youcef benchelli 2020년 3월 12일
clc
format short
%tout: a vector of number. The below removes numbers that are not multiple of 0.00005
tol = 1e-14; %abritrary tolerance below which numbers are considered equal
tout(abs(mod(tout, 0.00005)) > tol) = [];
tout = unique(tout);
NS1 = size(tout); % to find the number of samples
NS2=NS1(1,1);
FileName = input('Please enter a file name:', 's');
FN_cfg = [FileName,'.cfg'];
FN_dat = [FileName,'.dat'];
Data =[transpose((1:1:NS2)) tout M];
csvwrite(FN_dat,Data)
In the above code 0.00005 is the step size provided in the Powergui. But its user defined and can be changed whenever required.
if changed, the above code won't work and for that not to happen, i want to take the value directly from the Powergui.
Now the problem is there is no variable available for the step size in workspace to use above in place of 0.00005.
can anyone help me please?
  댓글 수: 1
youcef benchelli
youcef benchelli 2020년 3월 12일
problem dans le simulink
les commendes n'exist pas dans le matlab2012b
comme le photo
le programme n'excute pas

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by