How can I call a function inside a class in the command window?
14 ビュー (過去 30 日間)
古いコメントを表示
I'm new to matlab and I want to call a function contained inside a class in the comand window to run it. The method is not static. How can I do it? Also is there a simpler way to run the function? Also what is obj?
classdef my_class
properties
param
end
methods
function [x,y] = my_function(obj,a,b)
....
end
end
end
3 件のコメント
Ameer Hamza
2020 年 4 月 5 日
Jay, is the value name of the .txt file (a char array)? You can still call any public method of a class using the syntax described by Tommy.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!