photo

Wesley Lei


Last seen: mehr als 3 Jahre vor Aktiv seit 2022

Followers: 0   Following: 0

Statistik

MATLAB Answers

9 Fragen
0 Antworten

RANG
113.051
of 301.922

REPUTATION
0

BEITRÄGE
9 Fragen
0 Antworten

ANTWORTZUSTIMMUNG
66.67%

ERHALTENE STIMMEN
0

RANG
 of 21.464

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG

of 177.400

BEITRÄGE
0 Probleme
0 Lösungen

PUNKTESTAND
0

ANZAHL DER ABZEICHEN
0

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Discussions

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • Thankful Level 3
  • Thankful Level 2

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


working on a simple vector addition but every result in the loop shows up, even after i allocate memory. can someone please help me out? thanks a lot
A = [7 21 30 40]; B = [11 4 14 6]; [rows, columns] = size(A); D = zeros(1,rows); for i = 1:rows for j = 1:columns ...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


hi my assignment requires product of all diagonal elements, i did a simply look as copied below, but could only pass the test on one case and failed all others. can you please
shed some light on what I'm doing wrong? much appreciated. dU = 1; for i = 1:n dU = dU*U(i,i); end

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


My assignment asks to check compatibility of input and return an empty [ ] if not compatible. One of the input argument must be a column vector. can you please kindly explain
what kind of "if" statement i should include in my function? Thanks a lot.

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


hello, I'm supposed to check if the matrix is square if not, disp a message. when i used [n,m]=size(A), if n~=m, disp, it seems to work; if i use [n,n]=size(A),
can you please tell me what's wrong in below and how to use [n,n]=size(A) properly? silly question but you can tell i'm new. Tha...

mehr als 4 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


hello, i'm working on following assignment. it works and gets the correct roots, but i'm supposed to set up inputs a and b as an array containing initial bracket,
so i [can't pass the test code my prof set up which inputs a and b as [a,b]. ' ... 'Can you please kindly explain how i can...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Dear experts out there, I'm using an online version of matlab. when i try to run a function, it keeps freezing and I see below message at the bottom.
Message: "2 usages of 'y1' found". Is the freezing related to this error message? if so, how can i clear it? Thank you in adv...

mehr als 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I'm trying to plot a 3D. Seems simple but it keeps telling me "related documentation" error. Am I copying the functions in the wrong way? appreciate the hlep.
t = 0:0.1:20; x = (10 + 4.* sin(t)) *cos(t); y = (20 + 4.* sin(t)) *sin(t); z = 5.*exp(-0.2*t); plot3(x,y,z)

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Hi I'm trying to plot using a for loop. don't see syntax errors but plot comes out empty. appreciate your guidance.
for t = 0:30/100:30 y1 = 6*exp(-0.2)*t*sin(7*t+3); y2 = 4*exp(-0.1)*t*sin(3*t-1); end plot(y1,t); hold on; plot(y2,t); ...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort