I am working on ODE rk method, it is making graph in my GUI but i want to send that graph data on to my GUI table so how i can do that kindly help me

 채택된 답변

Geoff Hayes
Geoff Hayes 2016년 4월 24일

0 개 추천

Muhammad - what graph data to you want to send the table? At what point will this data be sent? Please clarify the data and the mechanism that initiates the population of the uitable. If you expect this to happen when you press a button, then in the push button callback you would use the handles structure (assuming that you are using GUIDE) to access the uitable control. For example, if you have one table with its tag unchanged, then you would do something like
% get current data from table
data = get(handles.uitable1, 'Data');
% update the data array with the new data
% newRowData = ???; to be determined by your
data = [data ; newRowData];
% update the table
set(handles.uitable1,'Data', data);

댓글 수: 4

Muhammad Tarique
Muhammad Tarique 2016년 4월 24일
편집: Muhammad Tarique 2016년 4월 24일
thanks Mr Geoff Hayes for your reply
After solving my problem (through formulas) it gives me a graph on x and y plane (because it gives point to point values and makes a curve) so on my table there should be 2 columns,one for values of x and second for y.And those values are numerical values
Okay, so you can just do (once the data has been calculated)
data = ...; % where data is a cell array
set(handles.uitable1,'Data',data);
It is giving me just value of y on uitable in one row (and multiple columns),there are 2 strings(data) x and y and i think uitable can show only one string at a time so how to send 2 strings on a uitable
Geoff Hayes
Geoff Hayes 2016년 4월 30일
Muhammad - please post the code that you have written so that we can get an idea of what you are attempting to do.

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

추가 답변 (0개)

카테고리

태그

질문:

2016년 4월 23일

댓글:

2016년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by