Graph is blank. Why?

1 回表示 (過去 30 日間)
Eren Cengiz
Eren Cengiz 2021 年 1 月 13 日
編集済み: Stephan Ciobanu 2021 年 1 月 13 日
mmf_data = dataeren(: ,1) ;
flux_data = dataeren(:, 2) ;
V = 8000*sqrt(2) ;
NS = 1000 ;
freq = 50 ;
w = 2*pi*freq ;
time = 0:1/3000:1/30 ;
flux = -V./(w*NS)*cos(w.*time) ;
mmf = interp1(flux_data, mmf_data, flux ) ;
im = mmf/NS ;
irms = sqrt(sum(im.^2 )/length(im));
subplot (2 , 1 ,1) ;
plot (time , im) ;
title (' \bf50 Hz için Mıknatıslanma Akımı ');
xlabel ('\bfZaman (s) ' ) ;
ylabel ('\bfIm(A)') ;
axis ([O 0.04 -2 2]) ;
grid on ;
My graphs is blank. When i change V value to 325, graphs work but i need work on 8000*sqrt(2)
  1 件のコメント
Daniel Pollard
Daniel Pollard 2021 年 1 月 13 日
We can't run this as we don't have dataeren.
If you call disp(size(im)), what does it say?

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

回答 (1 件)

Stephan Ciobanu
Stephan Ciobanu 2021 年 1 月 13 日
編集済み: Stephan Ciobanu 2021 年 1 月 13 日
you can try to specify the interpolation method:
mmf = interp1(flux_data, mmf_data, flux ,'pchip')
% or
mmf = interp1(flux_data, mmf_data, flux ,'spline')

カテゴリ

Help Center および File Exchange2-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