photo

Jillian Sweatt


Con actividad desde 2015

Followers: 0   Following: 0

Estadística

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


How do I exclude NaN values when calculating mean of each row in a matrix?
gpd=[2014,3.320,3.364,3.532,3.659,3.691,3.695,3.633,3.481,3.403,... 3.182,2.887,2.560;2015,2.110,2.249,2.483,2.485,2.77...

más de 7 años hace | 4 respuestas | 0

4

respuestas

Pregunta


How can the nested if statement in the last for loop be rewritten to be shorter?
clear; close all n = 4000; % (A) Use rand to generate randomly distributed points: Rand_Number = rand(n, 2); x = Ra...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do you rewrite the nested if statement as a loop?
clear; close all n = 4000; % (A) Use rand to generate randomly distributed points: Rand_Number = rand(n, 2); x = Ra...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do you rewrite the nested if statement as a loop?
for i=1:length(x) if x(i) >= -1 && x(i) <= -0.9 count(1) = count(1)+1; elseif x(i) >-0.9 && x(i)<-0.8...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to suppress the ans in a user defined function
I have been having trouble getting my code to stop outputting the ans and just output the values. function [mn,md,mo,V,Std,...

alrededor de 9 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I sort an array in descending order without using the sort function?
A = [2 1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 18 17 20 19]

más de 9 años hace | 3 respuestas | 0

3

respuestas

Pregunta


How do I convert from a while loop to a for loop?
i = 0; while (i < 110) fprintf('i = %d\n',i) i = i + 11; end

más de 9 años hace | 1 respuesta | 0

1

respuesta