Community Profile

photo

Nicholas Carlson


Active since 2015

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


I have data that needs to be set differently in the same for loop
load('elevation_data'); E = elevation_data; [NR,NC] = size(E); n = 1; fprintf(' Peak # J-coordinate K-coord...

8 years ago | 1 answer | 0

1

answer

Question


Switch case will not solve for each variable
Days_into_Month = cell(n,1); Month = char(Month(1:n,1)); for d = (1:n) switch Month case {'Jan'} Da...

8 years ago | 1 answer | 0

1

answer

Question


I need help with a switch case and it only comes up with an array of zeros
Days_into_Month = zeros(n,1); Month = char(Month(1:n,1)); for d = (1:n)' switch Month case {'Jan'} ...

8 years ago | 1 answer | 0

1

answer

Question


Going from a Matrix of months to a date.
Days_into_Month = cell(n,1); Month = char(Month(1:n,1)); for d = (1:n)' switch Month(d,1) case {'Jan'} ...

8 years ago | 1 answer | 0

1

answer

Question


Switch case and matrix input
n = input('number of rows \n ') for d = (1:n) Month = {'Mar'} Days = cell(n,1); switch Month case {'Jan'} ...

8 years ago | 1 answer | 0

1

answer

Question


I have an if else statement that runs through a matrix and the answer needs to be in matrix form
n = input('How many sets of data is in the file? \n'); Month = (1:n)'; for d = (1:n)' Total_Days = ((Weeks_into_Year ...

8 years ago | 1 answer | 0

1

answer