Feeds
提问
ommiting blanks in a string
how would i write a code to print each line of the string array G omitting any trailing blanks and blanks in-between letters
12 years 前 | 4 个回答 | 0
4
个回答提问
drawing a circle
please help i need to draw a green circle of radius 0.8 centered at x =2 , y=1.5 and display the result with the correct aspect ...
12 years 前 | 2 个回答 | 0
2
个回答提问
ommiting blanks in code
how do i write a code sequence omitting any trailing and leading blanks
12 years 前 | 1 个回答 | 0
1
个回答提问
ASCII file
i need a code sequence to save variable to a single ASCII file named mydata.asc
12 years 前 | 1 个回答 | 0
1
个回答提问
blanks
how would i write a code to print each line of the string array G omitting any trailing blanks?
12 years 前 | 1 个回答 | 0
1
个回答提问
matrix
A is an m x n array and B is an r x s array. how do i write an expression to multiply A and B and place the result in array C
12 years 前 | 3 个回答 | 0
3
个回答提问
why is my plot not showing anything
clc k = 8.9870e+009; q1 = .000000024820; q2 = .000005200901; for r = [.10,.15,.20,.25,.30,.40]; f = (k*q1*q...
12 years 前 | 3 个回答 | 0
3
个回答提问
plotting two different graphs
im using plot to graph one curve but now i need to plot a second curve on a different graph so how can i open 2 graphs from one ...
12 years 前 | 2 个回答 | 0
2
个回答提问
vector
i have a vector X = [.00000;.00001;.00002;.00003;.00004;.00005;.00006;.00007;.00008;.00009;]; i need to do X/(X-1) value...
12 years 前 | 1 个回答 | 0
1
个回答提问
linear regression
i have a table of data X = 1,2,3,4,5,6,7,8,9 Y= 4 5 6 9 8 7 4 1 2 how can i plot these points without having a line th...
12 years 前 | 3 个回答 | 0
3
个回答提问
plotting data
i have a table of data X = 1,2,3,4,5,6,7,8,9 Y= 4 5 6 9 8 7 4 1 2 how can i plot this data on a graph
12 years 前 | 2 个回答 | 0
2
个回答提问
create best fit line
if i have a bunch of random numbers how do i create a best fit line for my data
12 years 前 | 2 个回答 | 0
2
个回答提问
how to delete NaN from a column of data
I have a column of numbers that i called in from excel but some of my data comes up as NaN, which is fine but i need to do calcu...
12 years 前 | 2 个回答 | 0
2
个回答提问
how to call a column of data from excel into matlab
I need to take the mean median and mode from a column of data in excel first i tried using fopen filename but i keep getting ...
12 years 前 | 1 个回答 | 0
1
个回答提问
Help with 10.11 from A Engineers Guide to Matlab 3rd edition
If somebody has the book and is willing to help i would appreciate it im not sure what to do for r(t) and d(t) also do not know ...
12 years 前 | 0 个回答 | 0
0
个回答提问
using quadl to find area between 2 curves
i need to find the area between the 2 curves using quadl and trapz i was able to do it using just trapz but im not sure how to i...
12 years 前 | 1 个回答 | 0
1
个回答提问
format y axis on a graph
here is my code i need to format the y axis to go from 0 to 1 with increments of 0.1 im not sure how to go about doing this ...
12 years 前 | 1 个回答 | 0
1
个回答提问
adding data to a text file
i have a file called hello.txt using wordpad which contains the matrix 2 7 3 2 6 9 now i have a vector v = [1 2 3] and ...
12 years 前 | 2 个回答 | 0
2
个回答提问
appending a file
i have a file called hello.txt using wordpad which contains the matrix 2 7 3 2 6 9 now i have a vector v = [1 2 3] and ...
12 years 前 | 2 个回答 | 0
2
个回答提问
overwrite a text file with other data
Ok so here is what im stuck on. I have a text file called testdata.txt from wordpad. this file contains the data: 2 4 9 5...
12 years 前 | 2 个回答 | 0
2
个回答提问
how to take the average of a matrix of any size
How do I compute the mean of all the values in a matrix of *any size*
12 years 前 | 2 个回答 | 1
2
个回答提问
overwrite and append files
how do i overwrite or append files in matlab what functions should i be using?
12 years 前 | 1 个回答 | 0
1
个回答提问
file management
I need to ask the user to enter the input file name. Make them repeat until an existing file is found. please help Im not s...
12 years 前 | 1 个回答 | 0
1
个回答提问
display an input sentence to the user on multiple lines
coeff = input('Please enter the coefficients for the polynomial of the form ax^2 + bx + c = 0. Input all three values in this fo...
12 years 前 | 1 个回答 | 1
1
个回答提问
adding 2 polynomials having lots of trouble
y(x) = p_1*(x^n)+p_2*(x^(n-1))+...+p_n*x+p_n+1 z(x) = s_1*(x^m)+s_2*(x^(m-1))+...+s_m*x+s_m+1 i need to add the coeffici...
12 years 前 | 2 个回答 | 0
2
个回答提问
putting all my outputs into a vector using print
here is my code: n = 0; x = input('input an x value ') while n~=7 n = n+1; if rem(x,2)==0 fx...
12 years 前 | 1 个回答 | 0
1
个回答提问
add an integer x to certain values of a vector
for example i have the number 8, and i have a vector[ 1 2 3 4 5] i need to add 8 to the elements 1-4 of the vector to get the...
12 years 前 | 1 个回答 | 0
1
个回答提问
show same text on 2 lines without getting an error
i am in the middle of writing a script and it is very long and i wanted to put some of it on a second line but when i press ente...
12 years 前 | 1 个回答 | 0