Error using ofdm_mod Not enough input arguments.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Qibtisyifa Zahra
am 31 Dez. 2018
Bearbeitet: madhan ravi
am 31 Dez. 2018
How can I fix this error : I using matlab version 2015
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/199949/image.png)
function [ofdm_tx, varargout] = ofdm_mod ( bin_tx, qam_t, n_cp, n_dsc, n_fft, n_sym, ofdm_t)
%% Local Variables: number of bits, samples, guard symbols, temp variables for interfunction calls
n_bits_qam = log2( qam_t );
n_samp_sym = n_fft + n_cp;
n_bits_tot = length(bin_tx);
n_grd = (n_fft - n_dsc)/2;
flip_ofdm_call = 0;
aco_ofdm_call = 0;
%% end section
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 31 Dez. 2018
Bearbeitet: madhan ravi
am 31 Dez. 2018
See
You are running a function file. Apparently when calling a function you have to pass input arguments. See the example below:
x=1:10; % define the input before passing in
D = samplle(x)
function D = samplle(x) % function definition
D=x.^2;
end
Note : In versions prior to 2016b function definition have to be saved in a separate file containing the same name of a function but in 2016b or later a script file contain a function definition at the very end.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!