Community Profile

photo

Cesar Ramirez


Active since 2019

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Use matrix as a function
Hi, I want to use a matrix as a function , something like this m = [2 0 1; 4 3 5; 1 0 2; 3 1 10]; f = @(x,y,z) norm( Where ...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Random Number from -1 to 1
Hi. I want to know how to generate a random number from -1 to 1

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Matrix dimension must agree
Hi , I get error when trying to make xh = xp + r. xl = [-5,-5] ; xu = [5,5] ; D = 2 ; g =1000; xp = xl+(xu-xl).*rand(0,1) ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Error using rand Size inputs must be scalar.
Hi, I am trying to use rand , but Im getting erros Size inputs must be scalar. I am almost new at matlab and was wonder how to...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Plotting multiple times in a function
Hi , I amd new using matlab and I would want to know how can I plot every generation of child ( xh) and see how has improve each...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


Insert two elements in a multidimensional array
Hi, I want to insert two elements (h1,h2) into my multi array called xh after its initialized all with zeros. N = 50; xh = z...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Hi, Im getting error in (line 16) x(i,i) = xl+(xu - xl).*rand(2,1); Im new in matlab, and I cant solve that error in rand N =...

ungefär 5 år ago | 1 answer | 0

1

answer