Feeds
提问
How to extract data to a certain number?
Say for example I have an array, x=(1:0.25:10) and I want only the data points up to a certain number. How would I do this? L...
7 years 前 | 1 个回答 | 0
1
个回答提问
How can I evaluate the individual components of this array?
I have an array (for simplicity) [1,2,3,4,5,6,7,8,9,10] If the element in question is i, I would like to evaluate (i+2)-2*(i+...
8 years 前 | 2 个回答 | 0
2
个回答提问
need to analyze individual components of an array
So I am writing a function that will generate of an array. (lets use [1;2;3] as an example] I need to test each of these values...
8 years 前 | 1 个回答 | 0
1
个回答提问
How do I sum values of (x plus x-i) for (i=1 to x-1) using a while loop?
As a disclaimer, this is not homework. It is from an independent program which my instructor has given to anyone wanting additio...
8 years 前 | 1 个回答 | 0
1
个回答提问
How do I store the individul iterations of a loop in a matrix
Here is my code: for i=(1:1:6) s=sind(60*(i)); c=cosd(60*i) end what I want to get from this are two matr...
8 years 前 | 1 个回答 | 0
1
个回答提问
How do I store a function file to a variable?
I use a function file to run some computations and it looks something like this x_max(<input1,input2>=answer after the ...
8 years 前 | 1 个回答 | 0
1
个回答提问
I need help displaying this script
clc,clear i=0; for i=(1:1:6) s=sind(60*(i)); end The above is my script. I want to display every iteration...
8 years 前 | 1 个回答 | 0
1
个回答提问
How can I select specific values using this loop?
So i want to use a loop to calculate the sine(in degrees) of specific intervals on a 360 degree scale Here is what I have: ...
8 years 前 | 1 个回答 | 0
1
个回答提问
I need some help resolving and "inner matrix dimensions must agree" error
I would like to plot Y=5*x*exp(-3*x) where x=[0:.5:2.5] but I keep getting an error. What can I do to resolve this error?
8 years 前 | 1 个回答 | 0
