How do I run a function I downloaded?

조회 수: 8(최근 30일)
Michael Vaughan
Michael Vaughan 2020년 9월 18일
댓글: Michael Vaughan 2020년 9월 19일
So I downloaded this script nsumk to do some cool partition of integers for me:
When i open it in matlab it appears in the editor window, I think it's like in the place where I would normally write scripts (once I get that advanced, haha!). Anyway, what do I have to do from here to get this functiln nsumk running in my command line?? I've tried typing in numk and stuff like that but can't get it to work.
If you can't tell, i'm a total scrub at this stuff, but i'm very interested!!
Simple explanations appreciated!! Peace out!!!!


Mario Malic
Mario Malic 2020년 9월 18일
편집: Mario Malic 2020년 9월 18일
Please see John's comment as it's important.
Place the function in your current folder and call it from command window, or in write it in script.
[m,x] = nsumk(n,k)
  댓글 수: 8
Michael Vaughan
Michael Vaughan 2020년 9월 19일
Weird, I went to that line and put a % at the start of it, now the program runs, Thx

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

Community Treasure Hunt

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

Start Hunting!

Translated by