how can i show the result parameters in workspace?

조회 수: 11 (최근 30일)
fakhteh
fakhteh 2014년 5월 22일
답변: Mahdi 2014년 5월 22일
i write a m file program but after run the program, workspace is empty only for this program.how can i see parameter result in workspace?
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 5월 22일
What is the signature on your function (program)? Does it return something, the parameter result that you are expecting? i.e. if the signature is something like:
function [u,v] = myfunction(a,b,c)
% code
end
then when you call this function from the workspace, make sure that you are allowing the output of myfunction to be assigned to something:
>> [u,v] = myfunction(a,b,c);
Or are you expecting to see more/different parameter data?

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

답변 (1개)

Mahdi
Mahdi 2014년 5월 22일
You can do as Geoff mentioned in the comments. You can also tell the m file program to display the required values using disp or sprintf or something along those lines. Also, make sure that you don't have clc anywhere to clear the window.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by