# Check the value according to the change of variable in a graph

1 visualizzazione (ultimi 30 giorni)
태완 김 il 1 Mag 2023
Risposto: Sachin il 12 Mag 2023
In the above formula, I want to check the I value according to the change in the values of each variable Lm, Lr, and Cr in a graph. All variables used in the formula are the values I enter.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (1)

Sachin il 12 Mag 2023
Hi
I understand that you want to find a graph to check the changes in values.
Since you are finding the values of ‘I’ using the formula given in the question. Assuming that you have a vector containing the values of ‘I’ for different values of Lm, Lr, and Cr, I suggest you use the “plot” function in MATLAB to plot a graph of all the values.
% for example if you have calculated I with values Lm,Lr,Cr then you can
% plot the graph
I = linspace(-2*pi,2*pi);
Lm = sin(I);
Lr = cos(I);
Cr = 2*I;
p = plot(I,Lm,I,Lr,I,Cr);
Refer to the MATLAB documentation for the plot function.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by