photo

Murad Alzahrani


Last seen: circa 4 anni fa Attivo dal 2019

Followers: 0   Following: 0

Statistica

Feeds

Visto da

Domanda


Question about Forward time center space 1D matlab code
Hi. I tried make code I can solve this problem in Forward time center space 1D: As you see, but my code naver show me complet...

oltre 4 anni fa | 0 risposte | 0

0

risposte

Domanda


Out of memory. The likely cause is an infinite recursion within the program.
function [out] = Vout(t) D=5;% feet H=10;% feet yi=7;% ft (initial water level) ysp=5;% ft DT=30; % seconds amount of tim...

oltre 5 anni fa | 2 risposte | 0

2

risposte

Domanda


help for fprintf my code
function [out] = slope(t,G) k1=10;k2=20;m1=2;m2=4; v1=G(1); x1=G(2);v2=G(3);x2=G(4); out(1)=(-k1*x1+k2*(x2-x1))/m1; out(2)=v...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


how I can delete 1.0e+03 in my answer
clc;clear; tf=10; n=1; dt=0.1; t(n)=0.1; G1(n)=1; G2(n)=0; G3(n)=-1; G4(n)=0; m(n,:)=[1 0 -1 0]; while t(n)<=tf t(n...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Index exceeds the number of array elements (1).
clc;clear; tf=10; n=1; t(n)=0.1; dt=0.1; G1(n)=1; G2(n)=0; G3(n)=-1; G4(n)=0; m(n,:)=[1 0 -1 0]; while t(n)<=tf m(n...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Array indices must be positive integers or logical values.
function [out] = slope(t,G1,G2,G3,G4) k1=10;k2=20;m1=2;m2=4; out(1)=(-k1*G2+k2(G4-G2))/m1; out(2)=G1; out(3)=-k2(G4-G2)/m2...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How make code has 2 vectors as input and make loop than find output as vector
Hi everyone. I need know how I can make code I can put two vectors and use them in loop to find another vector as output. ...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How writing code sum 1+2+3+4+...+n
Hi. How I can writing code in MATLAB sum 1+2+3+4+..+n and I can change ( n ) to any numbers and MATLAB can sum for me. Thank y...

oltre 5 anni fa | 2 risposte | 0

2

risposte