Unable to resolve this.scaledProject2 what causes this error?
Show older comments
G was used to create a tranfer function and it was used to plot the root locus but when pointing on the root locus the value of gain does not show, it says 'unable to resolve this.scaledProject2'
11 Comments
Walter Roberson
on 24 Sep 2025
Please post reproduction steps.
William
on 28 Sep 2025
Not him, but really, this needs to be solved. Steps for reproduction:
- New Script
- Plot an rlocus
- Look for Gain at any point and behold "Unable to resolve the name 'this.scaledProject2'."
Code:
clc;
clear all;
close all;
%% SYS 1
num = [125];
den = [1 35 400 -1250];
sys1 = tf(num, den)
figure;
rlocus(sys1);
grid on;
%% SYS 2
z = [-2];
p = [-1 -1 -10];
k = 1;
sys2 = zpk(z, p, k)
figure;
rlocusplot(sys2);
grid on
Figures:


Works with R2025a, but it doesn't produce the legend. Which MATLAB version do you use ?
Do you have your own versions of "rlocus" and "rlocusplot" on your MATLAB path ?
What do you get if you type
which -all rlocus
which -all rlocusplot
It sounds as if "this.scaledProject2" is a struct variable that you intended to create and reference when creating the legend, but somehow failed.
clc;
clear all;
close all;
%% SYS 1
num = [125];
den = [1 35 400 -1250];
sys1 = tf(num, den)
figure;
rlocus(sys1);
grid on;
%% SYS 2
z = [-2];
p = [-1 -1 -10];
k = 1;
sys2 = zpk(z, p, k)
figure;
rlocusplot(sys2);
grid on
William
on 28 Sep 2025
I get this from the commands above:
/MATLAB/toolbox/control/ctrlobsolete/rlocus.m
/MATLAB/toolbox/control/ctrldesign/@DynamicSystem/rlocus.m % DynamicSystem method
/MATLAB/toolbox/shared/controllib/engine/+ltipack/@ltidata/rlocus.m % ltipack.tfdata method
/MATLAB/toolbox/control/ctrldesign/@DynamicSystem/rlocusplot.m % DynamicSystem method
So, apparently there is a miscommunication.
I did not create this legend; it belongs to rlocus itself and appears when you click on any point in rlocus.
This error started occurring in MATLAB Online. I do not know which version is being used, since it is not possible to select it.
This problem is not present in the 2024 versions of MATLAB, which is what I am currently using to avoid headaches, since it works as intended.
I don't think that this problem can be solved here.
I suggest you contact MATLAB Technical Support. If you allow them access to your PC, they can perform an effective search for the cause of the problem:
How does the legend look if you click on a point in rlocus for the 2024 versions of MATLAB ?
William
on 29 Sep 2025
Ah, thanks for the suggestion. I think it must be some update they made, because until a few days ago, it was working correctly, which is weird.
The interface is more old school, but it shows the gain values in the 2024 version.



Torsten
on 30 Sep 2025
As already suggested: report the problem to MATLAB support:
Andrew
on 18 Oct 2025
I am having the same problem inside of a brand new installation of 2025b locally on a mac.
Sam Chak
on 25 Oct 2025
Same issue occurs in MATLAB Online (R2025b Update 1) when the mouse cursor is clicked at a specific location on the root locus.

Joshua Nelson
on 17 Dec 2025
I am also having the same issue. Was anyone ever able to figure out a solution? 

Accepted Answer
More Answers (1)
Satyam
on 24 Oct 2025
1 vote
Hi,
Hi! I’ve seen this error before,'unable to resolve this.scaledProject2' , when trying to view the gain value by hovering over the root locus plot.
You can still get the gain values programmatically.
[r, k] = rlocus(G); % G is your transfer function
- r is an MxN matrix of root locations (each column corresponds to a different gain).
- k is a 1xN vector of gain values.
To find the gain for a specific root (or point) you’re interested in:
- Pick the (real, imag) coordinates of your point of interest.
- Find which entry in r is closest to your point.
- Use the column index of that entry to get the corresponding gain from k.
I hope it would resolve your query.
1 Comment
EDUARD
on 29 Nov 2025
How to fix the problem so that you can see the gain on the graph?
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
