mohsen


Aktiv seit 2016

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Error "Inner matrix dimensions don't agree" I used the element wise operator but I still have the same error
F = [-40:20:40]; x = [0:0.1:0.8] y = [0:0.1:0.4] sigma_p = F./(x.*y) sigma_mx = (F.*y)....

etwa 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


I am trying to plot my code using meshgrid command for three variables but I receive an error message
F = [-40:20:40]; x = linspace(0.1,0.8,length(F)); y = linspace(0.1,0.4,length(F)); sigm...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


When I try to 3d plot the code, the plot comes out empty what should I add to fix this problem
F = [-40:20:40]; x = 0.1:0.8; y = 0.1:0.4; sigma_p = @(x,y) F/(.8*x*y); sigma_mx = @(x,y) (F*y)/(1/12*(x)*(y)^3); ...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I need to 3d plot the code but there is an error can I get help with fixing the error
F = [-40:20:40]; x = 0.1:0.8; y = 0.1:0.4; sigma_p = @(x,y) F/(.8*x*y); sigma_mx = @(x,y) (F*y)/(...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Combining matrices, adding two matrices in into a bigger one.
Ke1 = [ 3 3 -3 3; 3 4 -3 2; -3 -3 3 -3; 3 2 -3 4]; Ke2 = [ 6 3 -6 3; 3 2 -3 1; -6 -3 6 -3; 3 1 -3 2]; Kg = zeros(6); ...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Error "Matrix dimensions must agree" what should I fix?
a = 0.25; theta = 0; r = [0:12]; x = (30/2)*((1-(a^2/r.^2))+(1+3*(a^4/r.^4)-4*(a^2/r.^2)*cos(2*theta))) y = (30/2...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I want to 3D plot the functions below but nothing appear on the figure, what should I add/change?
a = 0.25; theta = 0; r = 0.25; x = (30/2)*((1-(a^2/r^2))+(1+3*(a^4/r^4)-4*(a^2/r^2)*cos(2*theta))) y = (30/2)*((1+(...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I need to plot the following functions but I receive this error "Invalid indexing or function definition. When defining a function ensure that the arguments are symbolic variables ...."
x = 2:30; y = 40:60; u = @(x,y) 10*sin(200*x)+0.1*cos(10*y)+(100*x)./y; v = @(x,y) 10*cos(200*...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Error Z must be a matrix, not a scalar or vector.
prompt = 'what is the value of x'; prompt2 = 'what is value of y'; x = input(prompt); y = input(prompt2)...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort