回答済み
problem calculating nucleotide percentages
[rnaFile, message] = fopen(outputFile, 'w'); While not your problem, should check for the output file opening successfully ...

9年以上 前 | 1

| 採用済み

回答済み
How can I plot specific columns of my csv file
data=csvread('1333_mag.csv',1,0); % read the csv file, skip header row plot(data(:,1),data(:,2) % plot 2nd col...

9年以上 前 | 2

| 採用済み

回答済み
Plot using cell array text
No, pretty straightforward with categorical arrays... [~,txt]=xlsread('places.xls'); cats={'Place 1';'Place 2';'Place 3'...

9年以上 前 | 0

| 採用済み

回答済み
Extracting specified data from Excel
OK, not a bad effort for first time... :) _IF_ the data are as the sample spreadsheet shows such that the uninteresting value...

9年以上 前 | 0

回答済み
Date/time matrix for every hour.
Without |*datetime*| class, use |*datenum*|...same idea, just a little more work >> first = datenum(2006, 12, 1); >> last ...

9年以上 前 | 0

| 採用済み

回答済み
Program not running correctly. Trying to write program to determine number of days in month.
... switch (month) case {1,3,5,7,8,10,12} days = 31; case {4,6,9,11} days =30; case 2 ...

9年以上 前 | 0

| 採用済み

回答済み
Can I control the column order of workspace variables saved to .mat format?
Undocumented behavior. Can't rely on anything about the internal order; all SAVE says is that can LOAD the file back and have w...

9年以上 前 | 0

| 採用済み

回答済み
Why is empty string test failing?
>> p=cd p = C:\ML_R2014b\work >> whos p Name Size Bytes Class Attributes p 1x17 ...

9年以上 前 | 0

| 採用済み

回答済み
Multiple linear regression explanation
There is only a single regressor and a response variable so despite the comment in the code, this is _NOT_ multiple regression (...

9年以上 前 | 0

| 採用済み

回答済み
Convolution built-in function
What John and Stephen said. What you appear to want (and wanted originally) is just synthetic=conv(RC,amp); which would...

9年以上 前 | 3

| 採用済み

回答済み
overlapped bar charts up and down
See if one of the following is what you're looking for... subplot(3,1,1),bar(data) subplot(3,1,2),bar(data.') subplot...

9年以上 前 | 3

回答済み
Saving a matrix that have been created in a function in order to use it later.
You don't have to try to do that; use the functional form for the constraints for |*fmincon*| to call whenever it needs to evalu...

9年以上 前 | 0

回答済み
Excel Date Conversion into MATLAB
Are the Excel data stored as dates or as strings? If they're date types they'll be read by |*xlsread*| as Excel serial numbers....

9年以上 前 | 0

回答済み
How to write a single element into an excel sheet
doc xlswrite Pretty-much, trivially... xlswrite('yourfile,xls',x,sheet,'B2') where |sheet| is either a numeric number...

9年以上 前 | 1

| 採用済み

回答済み
Extracting data from excel
With "pure" Matlab-supplied functions, no. You would have to do it indirectly, reading the header row then finding the desired ...

9年以上 前 | 1

回答済み
error in matrix multiplication.
While I don't see it at first blush in the code, one (or both) of the two variables must be integer class-- >> i1=eye(3); ...

9年以上 前 | 0

| 採用済み

回答済み
How to find the average in a row?
What's wrong with mn=mean(tempv); % ???

9年以上 前 | 0

| 採用済み

回答済み
Attempting to Plot atand function and nothing appears in plot, any suggestions?
>> whos w Name Size Bytes Class Attributes w 1x51 408 double >...

9年以上 前 | 0

| 採用済み

回答済み
How do i renaming files based on their folder names?
... for F=1:length(subdinfo) % no need for temporary variable here [~,n,e]=fileparts(subdinfo...

9年以上 前 | 0

回答済み
Two functions on Same Graph - Vector Error
Several issues, the firstest is that you need the element-wise multiplication operator for P2, not matrix multiplication. These...

9年以上 前 | 0

回答済み
How to make the space between Columns the same when using X Tick even that the value between columns are increased in unorganized way
Two basic choices...illustrate below... >> hAx(1)=subplot(3,1,1); % make three to compare >> plot(x,y) ...

9年以上 前 | 0

| 採用済み

回答済み
Speed of matrix storage
I can't reproduce the result... metch.m tic,B=[A A;A A];t1=toc; tic,B=A*[1 0; 0 0] + A*[0 1; 0 0] + A*[0 0; 1 0] + A...

9年以上 前 | 0

回答済み
Creating multiple inputs depending on conditions
Of course, but I _strongly_ recommend against building the _N_ variables A1...AN. Ask the user for an array _A_ instead with N ...

9年以上 前 | 1

回答済み
why does it keep saying "not enough input arguments" when i run my code?
The arguments listed in the function definition are simply "dummy arguments"; they're placeholders and names to be used internal...

9年以上 前 | 0

回答済み
error in the code not getting removed
You have two matrix multiplications in the offending line |H+l1*eye(nh,nh))\(H'*Data.y);| So, the problem is one of the follo...

9年以上 前 | 0

| 採用済み

回答済み
Calculating bottom percentile and top percentile of a distribution using prctile()
Isn't top 30% simply (100-30)% -->70%???

9年以上 前 | 0

回答済み
How to store values in a array from a loop?
... m=0; for i = 2:25 for j = 2:38 m=m+1; Z(m,:)=[Samples_X(i, j), Samples_X(i, j+1),Samples_X(i,j...

9年以上 前 | 0

| 採用済み

回答済み
“The exact method is impossible. Will be forced to use approximate method. ”in “regstats”function?
See the _*Algorithms*_ section under doc dwtest It is a normal approximation referenced back to the D-W article from B...

9年以上 前 | 0

| 採用済み

回答済み
while inside a loop.
What you're missing here is the definition of 'True' in Matlab for vectors/arrays in *if* and *while* and other logical tests. ...

9年以上 前 | 0

| 採用済み

回答済み
GUI - position axis label possible?
Not certain what you want labelled where but |*xlabel*| by default will be at the midpoint of the axes to which it belongs and b...

9年以上 前 | 1

さらに読み込む