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!