|
|
function (input,output) with system()
I'm trying to make a matlab script into a function, but the input/output variables fall within the system() command so it isn't recognizing them as variables. Any ideas how I can get around this?
Here's basically how it looks:
function file(input,output)
system(input output)
|
|
0
|
|
|
|
Reply
|
Ali
|
5/11/2010 4:00:24 PM |
|
Ali Culp wrote:
> I'm trying to make a matlab script into a function, but the input/output
> variables fall within the system() command so it isn't recognizing them
> as variables. Any ideas how I can get around this?
>
> Here's basically how it looks:
> function file(input,output)
> system(input output)
Your question is fairly unclear. You might perhaps be wanting
system([input output])
or
sytem([input ' ' output])
or
system(['SomeCommandHere ', num2str(input), ' > ', output])
or any of a number of other possibilities.
|
|
0
|
|
|
|
Reply
|
Walter
|
5/11/2010 4:19:11 PM
|
|
Well the exact command is:
system('dcm2nii -o OutputFolder InputFolder') where the OutputFolder and InputFolder will be the two changing variables that I want to put in the function.
|
|
0
|
|
|
|
Reply
|
Ali
|
5/11/2010 4:29:23 PM
|
|
Ali Culp wrote:
> Well the exact command is:
> system('dcm2nii -o OutputFolder InputFolder') where the OutputFolder and
> InputFolder will be the two changing variables that I want to put in the
> function.
system(sprintf('dcm2nii -o %s %s', output, input));
|
|
0
|
|
|
|
Reply
|
Walter
|
5/11/2010 4:51:22 PM
|
|
Perfect, thanks!!
|
|
0
|
|
|
|
Reply
|
Ali
|
5/11/2010 5:22:22 PM
|
|
|
4 Replies
146 Views
(page loaded in 0.388 seconds)
Similiar Articles: Output non-derivative variables from ode solver - comp.soft-sys ...function (input,output) with system() - comp.soft-sys.matlab ... Output non-derivative variables from ode solver - comp.soft-sys ... function (input,output) with system ... How to get output values from ANFIS - comp.soft-sys.matlab ...function (input,output) with system() - comp.soft-sys.matlab ... ANFIS output - comp.soft-sys.matlab Adaptive neuro fuzzy inference system ... How to get output values ... real time analog input and output - comp.soft-sys.matlab ...... continuously sample an analog input (microphone) and then output ... by hooking the "samples acquired function ... allows you to route the selected input channel to your system ... too many input/output arguments - comp.soft-sys.matlabtoo many input/output arguments - comp ... comp.dsp too many input/output arguments - comp.soft-sys.matlab I am using the function as shown ... Quad8.db']) If I only use system ... Redirecting Output to GUI - comp.soft-sys.matlab... Redirecting an arbitrary Console's Input/Output ... Capturing the output from a system command into a single string ... am building a C# application that calls functions ... Capturing the output from a system command into a single string ...I want to catch the output from a system command into ... listing into the variable $output. A similar function, system("ls ... pid := system (command_string,& input,& output ... how to check output of PSNR block in simulink - comp.soft-sys ...... coefficient of transfer function in Simulink ..... the slope of the output ... ... data input, a time delay input, and a data output. ... following: Note that the output of our system ... Simulink Audio Output - comp.soft-sys.matlab... because only if I have one input wave file make the output ... So each input sound goes through Embeded Matlab Function, Digital Filter ... digital communication system ... Matlab graph shift - comp.soft-sys.matlabHi I am comparing input and output data for system identification. I need to shift the output ... Transfer Function , or equation from a graph - comp.soft-sys ... Transfer ... input & output in assembly - comp.lang.asm.x86... the CPU and the system... And in hardware terms, the keyboard and monitor (for input and output ... it was with the output functions...you get better "control" over input ... The Multics Input/Output SystemIn the pre-multiprogramming, batch operating systems, many supervisory functions had to do with input/output control -- e.g., control over queued jobs, control for ... multiple input, multiple output, function, system - YouTubeThis video presents the idea of more than one output from a single function as well as the idea of a function without any inputs (for example: numbers and ... 7/7/2012 12:42:45 PM
|
|
|
|
|
|
|
|
|