mohsen


Attivo dal 2016

Followers: 0   Following: 0

Statistica

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Domanda


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

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta