Error normalising multiple data sets with the same parameters
이전 댓글 표시
I've compiled 5 different datasets into a 3D plot by loading the relevant plots using the method below:
openfig('3DPlot1.fig');
Plot1 = get(gca,'Children');
Plot1_X = get(Plot1, 'ZData');
Plot1_Y = get(Plot1, 'ZData');
Plot1_Z = get(Plot1, 'ZData');
but now need to normalise the temperature (Z axes) axes for all datasets obtained this way.
I've tried using the following method from the normalize() page:
[N,C,S] = normalize(___) additionally returns the centering and scaling values C and S used to perform the normalization. Then, you can normalize different input data using the values in C and S with N = normalize(A2,'center',C,'scale',S).
So it looks like this in my code:
[Plot1_T, C, S] = normalize(Plot1_Z);
Plot2_T = normalize(Plot2_Z, 'center', C, 'scale', S);
But I'm getting the error "Error using normalize. Too many output arguments.". Could this be something to do with the way I'm loading the data as I don't see any error with typing in the code? If so, how else could I normalise all the data? I can't normalise them separately as it will affect the 3D plot shapes once all datasets are shown.
Thank you!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Axes Appearance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!