How to Set Specific Arg in Function
Hi, I’m trying to use th function give at this link:
https://uk.mathworks.com/matlabcentral/fileexchange/47165-heatscatter-plot-for-variables-x-and-y
When I set the default values it works fine ie:
heatscatter(workingr, workingi,”, ‘test.png’);
However I would now like to add a title, but I cannot figure out how to do this. I’ve tried seraching for how to change/edit/give a specific argument but I can’t find it. I’ve tried the following options but none seem to work:
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, ‘testtitle’);
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, testtitle);
heatscatter(workingr, workingi,”, ‘test.png’, title, testtitle);
I always get the error:
Nonfinite endpoints or increment for colon operator in index.
When I fill out the entire list of args as:
heatscatter(workingr, workingi,”, ‘test.png’,’300′, ’10’, ‘.’, 0, 0, ‘test’, ‘test2′,’title’);
I can control all the parameters, except title – I get the following error:
Index exceeds the number of array elements (5).
Error in heatscatter (line 186)
title(title);
What am I doing wrong? Thanks in advance.Hi, I’m trying to use th function give at this link:
https://uk.mathworks.com/matlabcentral/fileexchange/47165-heatscatter-plot-for-variables-x-and-y
When I set the default values it works fine ie:
heatscatter(workingr, workingi,”, ‘test.png’);
However I would now like to add a title, but I cannot figure out how to do this. I’ve tried seraching for how to change/edit/give a specific argument but I can’t find it. I’ve tried the following options but none seem to work:
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, ‘testtitle’);
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, testtitle);
heatscatter(workingr, workingi,”, ‘test.png’, title, testtitle);
I always get the error:
Nonfinite endpoints or increment for colon operator in index.
When I fill out the entire list of args as:
heatscatter(workingr, workingi,”, ‘test.png’,’300′, ’10’, ‘.’, 0, 0, ‘test’, ‘test2′,’title’);
I can control all the parameters, except title – I get the following error:
Index exceeds the number of array elements (5).
Error in heatscatter (line 186)
title(title);
What am I doing wrong? Thanks in advance. Hi, I’m trying to use th function give at this link:
https://uk.mathworks.com/matlabcentral/fileexchange/47165-heatscatter-plot-for-variables-x-and-y
When I set the default values it works fine ie:
heatscatter(workingr, workingi,”, ‘test.png’);
However I would now like to add a title, but I cannot figure out how to do this. I’ve tried seraching for how to change/edit/give a specific argument but I can’t find it. I’ve tried the following options but none seem to work:
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, ‘testtitle’);
heatscatter(workingr, workingi,”, ‘test.png’, ‘title’, testtitle);
heatscatter(workingr, workingi,”, ‘test.png’, title, testtitle);
I always get the error:
Nonfinite endpoints or increment for colon operator in index.
When I fill out the entire list of args as:
heatscatter(workingr, workingi,”, ‘test.png’,’300′, ’10’, ‘.’, 0, 0, ‘test’, ‘test2′,’title’);
I can control all the parameters, except title – I get the following error:
Index exceeds the number of array elements (5).
Error in heatscatter (line 186)
title(title);
What am I doing wrong? Thanks in advance. set, args, function MATLAB Answers — New Questions