photo

Khalid Tewfik


自 2016 起处于活动状态

Followers: 0   Following: 0

统计学

  • Thankful Level 2
  • Thankful Level 1

查看徽章

Feeds

排序方式:

提问


I have a simple question how do I save the outputs of my script to a vector
for t = -5:.2:50 if (t > 0) && (t <= 10) vel = 11*t^2 - 5*t; elseif (t >= 10) && (t <= 20) vel = 1100...

7 years 前 | 1 个回答 | 0

1

个回答

提问


Simple question how do I adjust the for loop to go through the rows of the excel matrix one by one. Milesdriven adds the columns 2:11 of the first row, i want the calculation to be done for the next 54 rows as well.
filename = 'project3data.xlsx'; num = xlsread('project3data.xlsx'); for i = 1:55 milesdriven = sum(num(2,2:11)) e...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how do I get i to loop through the 55 columns of the excel file one by one. I want i to correspond to the values of the 55 columns to calculate miles driven
filename = 'project3data.xlsx'; num = xlsread('project3data.xlsx'); for i = 1:55 milesdriven = sum(nu...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Best way to write this function in matlab while using eps in the denominator to avoid zero
Here's what I had z = (xx.*yy.*(xx.^2-yy.^2))/(eps(xx.^2+yy.^2)); but I kept getting a rank deficient error

8 years 前 | 1 个回答 | 0

1

个回答

1

个回答

1

个回答

提问


I'm writing a function where I've called the script AngleA and the function written below works fine to find AngleA but when I write a similar code for AngleB it says that AngleB isn't defined how do I define the variable or fix the error?
function [A] = AngleA(a,b,c) AngleA = acosd((b^2 + c^2 - a^2)/(2*b*c)) function [B] = AngleB(a,b,c) AngleB = acosd((a^2 + c...

8 years 前 | 1 个回答 | 0

1

个回答

提问


How do I write the following functions on Matlab x(t) = 2tcos(pi*t) , y(t) = 2sin(pi*t)
I keep getting error using * and other errors

8 years 前 | 3 个回答 | 0

3

个回答