MATLAB: How to show results for curves in a graph graphics I have a graph with 5 curves. I have certain results for each curve. How can i print them in the graph just like legend? Best Answer A = rand(3,10) ;M = mean(A,2) ;plot(A')str = cell(3,1) ;for i = 1:3 str{i} = strcat('mean=',num2str(A(i))) ;endlegend(str) Related SolutionsMATLAB: Legend of Many curves on one graph?! N = 5 ;str = cell(N,1) ;for i=1:N % load all my file .*mat % do some calculations plot(rand(10,1)) str{i} = num2str(i) ; hold onendlegend(str) MATLAB: Import strings from file to matrix fpath_audio_split = cell(5,1) ; for i = 1:5 fpath_audio_split{i} = strsplit(string(fpath_audio(i,1)),',');end Related QuestionPol2cart in loop and pre-allocating
Best Answer