Home > Net >  C # call matlab drawing can't display images
C # call matlab drawing can't display images

Time:09-15

I use c # call in VS2017 drawing function of matlab, but don't have any reaction after operation, no popup images, it is strange that call other functions can be calculated values, beg god for help and see what went wrong, it is

This is my code, in order to see if method is called, also specially set up a RtnFlag is 1, but in the end you can print out 1, but the image did not pop up,
Before the configuration environment configuration along while, also don't know where is wrong,

CodePudding user response:

Console. WriteLine is device output data to the text, rather than to the graphics device output

CodePudding user response:

reference 1st floor xuzuning response:
Console. WriteLine is device output data to the text, rather than to the graphics device output


PlotClass Plot this encapsulated inside the drawing function of matlab, in order to check whether this function have been running, I in addition to output a "1" logo, and then use the Console. WriteLine printed
Specification of "1" to the console can display function is called, but it didn't display image
Is to show the plot of the images also need other what instructions?

CodePudding user response:

Topic main solved this problem, I use vs2017 and matlab2017a also encountered such a problem

CodePudding user response:

 private void button1_Click (objest sender, EventArgs e) 
{
PlotClass PlotClass=new PlotClass ();
A=new MWArray MWArray [] [10] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
B=new MWArray MWArray [] [10] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

for (int i=0; i<=9; I++)
{
PlotClass. The plot (0, a [I], [I] b);
}

}

CodePudding user response:

Could you tell me how to solve? Now I also can't pop up Matlab drawing frame
  •  Tags:  
  • C#
  • Related