mohsen


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


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)....

8 years ago | 2 answers | 0

2

answers

Question


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...

8 years ago | 1 answer | 0

1

answer

Question


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); ...

8 years ago | 1 answer | 0

1

answer

Question


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)/(...

8 years ago | 1 answer | 0

1

answer

Question


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); ...

8 years ago | 1 answer | 0

1

answer

Question


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...

8 years ago | 1 answer | 0

1

answer

Question


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+(...

8 years ago | 1 answer | 0

1

answer

Question


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*...

8 years ago | 1 answer | 0

1

answer

Question


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)...

8 years ago | 1 answer | 0

1

answer