由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - MatLab Code
相关主题
any thoughts about matlab有人研究过BitCoin的算法和通讯协议吗? (转载)
how to code this question of LinkedIn (转载)LSTM 是不是坨屎?
[转载] 简单的题都不敢做了.请教 一个c++ lambda function 的问题
这道题有什么好思路?请教个javascript的问题 (转载)
面试题 -算法?C -> assembly
Help with a simple c-shell script.matlab: find main workspace variable?
[合集] Solve this task using recursion. how to ?有什么语言能取代python作数据处理? R?
[合集] google interview questionBig # of files output problem in C
相关话题的讨论汇总
话题: matlab话题: function话题: code话题: ki话题: output
进入Programming版参与讨论
1 (共1页)
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
2
ki(a,b,...) 就行了
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

1 (共1页)
进入Programming版参与讨论
相关主题
Big # of files output problem in C面试题 -算法?
How to execute a shell command in java and display the output?Help with a simple c-shell script.
Help -- How to output error messages to a file for scripts called by system calls???[合集] Solve this task using recursion. how to ?
一道c[合集] google interview question
any thoughts about matlab有人研究过BitCoin的算法和通讯协议吗? (转载)
how to code this question of LinkedIn (转载)LSTM 是不是坨屎?
[转载] 简单的题都不敢做了.请教 一个c++ lambda function 的问题
这道题有什么好思路?请教个javascript的问题 (转载)
相关话题的讨论汇总
话题: matlab话题: function话题: code话题: ki话题: output