Community Profile

photo

Carly Hudson


Last seen: 4 månader ago
5 total contributions since 2020

Carly Hudson's Badges

  • Thankful Level 1

View details...

Contributions in
View by

Question


How do I add a legend in a for loop of variables from an array?
Hello, I am attempting to input of an array into a legend, in a for loop. I am having trouble, but I think I am almost there. A...

4 månader ago | 1 answer | 0

1

answer

Question


Having trouble with legend
Here is my code: %Line Colors strColor = {'-r','-g','-b'}; %Legend String strLegend = {'nSamples = 5','nSamples = 10','nSa...

5 månader ago | 2 answers | 0

2

answers

Question


Getting error about index in for loop
%for loop for plotting given data for k = 0:size(dataN) val = dataN(:,k); avg = mean(val); end I am getting this er...

5 månader ago | 1 answer | 0

1

answer

Question


How to make an array of function outputs?
%equation for y yFunction = @(t) ((4.*t.^3)+(3.*t.^2)+(5.*t)+5); %Plotting the function fplot(yFunction,[-10,10]); I am tr...

5 månader ago | 2 answers | 0

2

answers

Question


How to index a variable value and assign it to an array?
I am a beginner in MatLab and I am trying to assign a variable value to an array. Ex: d1 = 579 y = array(d1) I know I can ...

6 månader ago | 1 answer | 0

1

answer