function handle specify in matlabfcn function
Mostra commenti meno recenti
Hi,
Is it possible to specify the function handle in matlabfcn function when using the spreadsheet link in Excel? when i try to do an integration with the syntax"=@matlabfcn("quadgk","@(x) x.^2",M3,M4)" in Excel, it returnd an error, and said the first input argument must be function handle, is there anyone can help me how to specify the function handle in matlabfcn function? Many thanks.
Risposte (1)
=matlabfcn("quadgk(@(x) x.^2)", M3, M4)
7 Commenti
llu
il 16 Nov 2021
Jan
il 16 Nov 2021
quadgk needs 3 input arguments: A function and the initial and final limit. It is not clear how you try to provide the function in the Excel call. So please post, what the inputs are, what you want to calculate and what "does not work" means.
llu
il 20 Nov 2021
Jan
il 20 Nov 2021
Matlab's quadgk command requires 3 inputs: The function handle and 2 limits. You call it with 1 input only.
llu
il 21 Nov 2021
llu
il 22 Nov 2021
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

