Feeds
提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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'} ...
10 years 前 | 1 个回答 | 0
1
个回答提问
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'} ...
10 years 前 | 1 个回答 | 0
1
个回答提问
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'} ...
10 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
10 years 前 | 1 个回答 | 0