c******g 发帖数: 484 | 1 I received a code from somebody else starting like:
function [w, x, y, z]=ki(a,b,c,d,e,f,g,h)
...
Does anybody know how to run it? I guess I need to set a value to a, b, c,
d, e, f, g, h before I get the results of w, x, y, and z.
Do I need to write another code to call this function [w, x, y, z]?
I am first time matlab user and just want to get things going. | f******y 发帖数: 2971 | | k**f 发帖数: 372 | 3
,
The function interface says if you provide parameters a to h, you can get up
to four output at the same time. As the result of calling this function,
there will be four more variables w to z in your workspace. If you want only
w, x, then call the function as [w, x] = ki(...).
Try type help ki in the command window to see if the author had provided
online help for using this function.
Good luck.
【在 c******g 的大作中提到】 : I received a code from somebody else starting like: : function [w, x, y, z]=ki(a,b,c,d,e,f,g,h) : ... : Does anybody know how to run it? I guess I need to set a value to a, b, c, : d, e, f, g, h before I get the results of w, x, y, and z. : Do I need to write another code to call this function [w, x, y, z]? : I am first time matlab user and just want to get things going.
| r*******y 发帖数: 290 | 4 up to 4 output at the same time? why 4?
is there a limit in the number of inputs?
up
only
【在 k**f 的大作中提到】 : : , : The function interface says if you provide parameters a to h, you can get up : to four output at the same time. As the result of calling this function, : there will be four more variables w to z in your workspace. If you want only : w, x, then call the function as [w, x] = ki(...). : Try type help ki in the command window to see if the author had provided : online help for using this function. : Good luck.
| k**f 发帖数: 372 | 5
I was talking about your example [w, x, y, z]=ki(a,b,c,d,e,f,g,h), which has
four output w, x, y and z.
Generally speaking, a MATLAB function can have zero to dozens of outputs.
But practically, a handful is enough, because each output can be a multi-
dimensional matrix, or a structure, or a cell.
If you are serious, please take a bit time to read MATLAB user's guide. You
won't regret.
【在 r*******y 的大作中提到】 : up to 4 output at the same time? why 4? : is there a limit in the number of inputs? : : up : only
|
|