回答済み
I have large number of precipitation daily data in a column (for 50 years) for 221 meteorological stations. Now I need to convert it to monthly sum. How can I do that? thanks.
Probably the better way to approach this presuming a new (>=R2014) would be to convert the array to a *table* and use grouping v...

約11年 前 | 0

回答済み
Probability distribution for a mean wind speed
From doc wblplot-- _"The purpose of a Weibull probability plot is to graphically assess whether the data in X could come from...

約11年 前 | 0

| 採用済み

回答済み
Regarding Software for my portfoli
Matlab and Simulink are full-featured computational platforms; almost certainly you can whatever it is you wish with either/both...

約11年 前 | 0

回答済み
Could anyone can help me with a question about function workspace?
The definitions in the function are local and the dummy arguments are assigned values by position, _NOT_ by association of name ...

約11年 前 | 0

| 採用済み

回答済み
Reading text file coordinate point
_"...I tried using textscan(fileID, '%d')"_ (0.2, 0.8, 0.5) values are floating point, not integers so %d won't work and you ...

約11年 前 | 0

回答済み
What is the order of the parameters in the fit?
The fittype object is built with the assumption of using the coefficients a, b,c,... in models as assumed in alphabetic order un...

約11年 前 | 0

回答済み
hi, how to use strsplit function to split a line of string into multiple lines when a predefined number of characters is reached?
s=reshape(s,L,[]); Requires rem(length(S)/L)=0, of course.

約11年 前 | 0

回答済み
datetick does not set x-ticks accurately
Kirby got the root cause; there's one other issue I'd warn about...I recommend strongly against using *linspace* or other floati...

約11年 前 | 1

| 採用済み

回答済み
How can I read a file with two different set of columns and multiple delimiters
Not clear what the two rows at the beginning of the green section are--are they also header rows or actually data? Also, is the...

約11年 前 | 0

回答済み
I want to input this fractions i.e. 1/2+1/3.. How can i get answer in same format i.e. in fractions?
>> format rat >> 1/2+1/3 ans = 5/6 >> format short >> 1/2+1/3 ans = 0.8333 >>

約11年 前 | 3

回答済み
Load the numeric data of a cyclic text file into a matrix
No matter what you do it likely is going to take a while if the file is that large. But, reading it is pretty straightforward.....

約11年 前 | 0

回答済み
recalling the values as a row matrix
Preallocate _theta_ before the loop... theta=zeros(1,nmc); Then, store each value when computed by writing theta(i)...

約11年 前 | 0

回答済み
how to merge two text files in one
Simplest here is probably just brute force...open an output file, then open each input in succession, copying lines (excepting f...

約11年 前 | 0

| 採用済み

回答済み
Finding intersection of polyfit and line
Doesn't do any good to fit the data but not save the coefficients of the resulting fit... b=polyfit(l,FS,3); % Get coef...

約11年 前 | 0

回答済み
how to re order a matrix based on a vector ?
Clearly you haven't tried the obvious... >> A(:,t) ans = 2 16 3 13 11 5 10 8 7 9...

約11年 前 | 2

| 採用済み

回答済み
How to generate samples from a cauchy distribution
a_c1ovrc2( :, ~any(a_c1ovrc2,1) )= [] _"in order to delete all the unnecessary zero columns(I don't understand why they we...

約11年 前 | 0

| 採用済み

回答済み
Problem with renaming dublicated variablenames
ppn=strcat(ppn,'_01'); % add the '_01' at the git-go... [~,~,ib]=unique(ppn); % get a list of unique name positions [...

約11年 前 | 0

回答済み
Lookup values in other matrix
>> v1={'Math'; 'Chem'; 'Bio'; 'Chem'; 'Chem'; 'Math'}; >> v2={'Baseball' 'Tennis' 'Soccer' 'Tennis' 'Tennis' 'Baseball'}.';...

約11年 前 | 0

| 採用済み

回答済み
How do I declare a variable non-automatically on Matlab?
Don't have the coder to test, but how about >> B=struct('obs',0,'cust',0,'visit',0) B = obs: 0 cust: 0 ...

約11年 前 | 0

回答済み
How to pull similar data from different sized matrices?
Not sure where the problem lies, exactly, or the actual question but--- set1=set1(iswithin(set1(:,1),3,9),:); will turn ...

約11年 前 | 0

| 採用済み

回答済み
plot unequal length vectors
All you can do there is create some mapping of an X value for each Y; it makes no sense otherwise other than simply by ordinal p...

約11年 前 | 0

回答済み
Error using textscan Badly formed format string??
formatSpec = '%{yyyy-mm-dd HH:mm}D%f%f%f%f%f%f%g%{^\n\r}'; The curly brackets don't belong around the trailing %{^\n\r} to ...

約11年 前 | 1

回答済み
How can I count it by months?
This will be _much_ easier if you convert the month, day columns into date numbers. I don't have the newer table by which you c...

約11年 前 | 0

回答済み
I am looking for a vb.net example that writes .mat files. What Matlab file references are required?
<http://www.mathworks.com/help/matlab/read-and-write-matlab-mat-files-in-c-c-and-fortran.html read-and-write-matlab-mat-files-in...

約11年 前 | 0

回答済み
How to store the solution in to .txt file?
There are a "veritable plethora" of ways to create a text file in Matlab...which is most suitable depends on what your data actu...

約11年 前 | 1

回答済み
make calculations with excel file data
"_Is the same calculation for all...of the column 8."_ Tf=a(:,8)*1.8+32; % convert column 8 (assume T in C) to F Done f...

約11年 前 | 0

| 採用済み

回答済み
How to identify the approximate value from two different vectors?
Assuming the above comment is true... >> interp1(B,B,A,'nearest') ans = 14.4400 14.1200 90.4190 90.8500

約11年 前 | 0

回答済み
Problem with ''mode'' function in matlab
>> x=uint8(randi(244,10)); >> mode(x(:)) Error using mode (line 56) X must be an array of double or single numeric values. ...

約11年 前 | 2

| 採用済み

回答済み
Plotting figures using figure handles
Once it's closed, it's gone and the handle, despite the variable still holding the value, is bogus. Only replotting from the ...

約11年 前 | 2

| 採用済み

回答済み
counting column bits with the same weight in binary array
n=hist(sum(array),0:size(a,1)); N _th_ element of n will contain counts for that number of bits from zero to size(array,1);...

約11年 前 | 1

| 採用済み

さらに読み込む