回答済み
Determine the order how .mat files are loaded into the workspace by an numerical value, which is stored in the file, ascending?
_"determine the order to load them ascending by the value in row 13"_ Not to _load_ them w/o doing so twice or other machinat...

9年弱 前 | 0

回答済み
most frequent word in cell array
Good place to use |categorical| variables instead of the |cellstr|... Example: >> yn={'yes' 'no' 'Yes';'no' 'No', 'NO'};...

9年弱 前 | 2

回答済み
i have two 68*1 matrices of drought severity and duration. how to get severity-duration-frequency curves for some given frequencies(i.e. return period=5 years, 10 years, 50 years)
In all likelihood at a minimum the severity of the drought will be highly correlated with the duration so simple univariate anal...

9年弱 前 | 0

回答済み
Store data into new variable in for loop
For Matlab, you wouldn't need a loop at all... N=5; data = 10-[1:N]; as a constant can be added onto a vector automag...

9年弱 前 | 2

回答済み
Why textscan only reading 1 line (headerline + 1st line)
Your count for the floats is off by one-- there are six, not five. Either read the whole file and just discard any you don't wa...

9年弱 前 | 2

| 採用済み

回答済み
Merge two data sets/matrices from different sources
# Read file 1 -- call it _X1_ # Read file 2 -- call it _X2_ # Interpolate column 1 of _X1_ to match _X2_ X1=importdata('f...

9年弱 前 | 0

回答済み
how do i create a text file with that name person[Id][Serie][Number][Tilt][Pan].jpg
To build a filename from the variable values use specific formatting... >> fnFmt='person%02d%1d%2d%+2d%+.2d.jpg'; ...

9年弱 前 | 0

回答済み
How to store values in an array from a loop
_"...store first value, 730374, into the array, and then the next value, (730374+543.4) into the next value."_ tseArray=[73...

9年弱 前 | 0

回答済み
why is the green graph (pco2) not coming in the complete range of x-axis? However it is covering the complete range. i have used plotyyy function to create multi y axis plot.
Oh; my eyes missed the third 'y' in |plotyyy|; that must be a FEX submittal. ax=plotyyy(t',sst,t',pco2,t',sss); datetick...

9年弱 前 | 0

回答済み
Subscript indices must either be real positive integers or logical
I don't know what your intent is so can't tell you what to do to get the answer you want, but the problem is in for j= 1:N ...

9年弱 前 | 0

回答済み
What are Estimated coefficients parameters (Estimate, SE, tStat, pValue) when we do the linear regression model by the command fitlm?
Follow through the documentation -- click on the *mdl* active link of the LHS output variable in the |*Description*| section whi...

9年弱 前 | 1

| 採用済み

回答済み
How do I add a Hanning Window to this code before I FFT it?
FT=fft(hanning(length(alex_y_f)).*alex_y_f); presuming your data are vectors. If not, use the proper array dimension for l...

9年弱 前 | 1

| 採用済み

回答済み
Using 'find' for finding whole numbers
|find| has no difficulty in returning integer-valued floating-point numbers (which is the default storage in Matlab and in an ar...

9年弱 前 | 0

回答済み
Problems Creating a Random Graph
That's MUPAD syntax; requires the Symbolic Toolbox.

9年弱 前 | 0

回答済み
how to get fft of a signal?
c = fft(a); takes the fft of both columns independently and then when you plot() that you get both plots on the same axis. ...

9年弱 前 | 0

| 採用済み

回答済み
How do I plot the velocity and acceleration vectors at only every 10th computation of position? I have 10'000 computations of position. Two vectors at every point provides a messy and unuseful plot. Thanks!
N=10; % how many points in interval ix=1:N:length(xp); % indexing vector of every N-th point ... ...

9年弱 前 | 1

| 採用済み

回答済み
How to repeat a function several times?
Just preallocate the output array and call the function in a loop saving each simulation in row/column of the array depending on...

9年弱 前 | 0

| 採用済み

回答済み
How to use dot notation (substructures and fields) with a parameter which has already "dot" in it??
Short answer is "you can't do that!". The field name in the variable has to be a single field and a field name can't have an em...

9年弱 前 | 2

| 採用済み

回答済み
Sampling frequency in fft analysis.
FFT algorithm doesn't care what the sampling rate is; your rate is 1/Day so that's the frequency. You can convert to any other ...

9年弱 前 | 1

| 採用済み

回答済み
I want to loop a value into a vector, how do I do this?
You've got the assignment to |F(m)| outside the loop on |m|... ... C = B(:,end) % takes the last elements in the B v...

9年弱 前 | 0

回答済み
save Matrix immediately?
imagesc(xx,t,malta1t_H.asc') |imagesc| doesn't read a file; it only operates on an image array already in memory. Also y...

9年弱 前 | 1

回答済み
How to plot a graph of sine and cosine function in command prompt or by function in matlab?
Why would you expect the above to give any output--all you've done is define a function handle and a vector of two points...you'...

9年弱 前 | 1

回答済み
how to store data result to excel from an equation in matlab for a simulation
_"As We know that whenever we specify xlswrite command it starts writing from cell A1 of the excel sheet."_ Au contraire, "we...

9年弱 前 | 0

回答済み
Fixing the absolute bar width on 'bar' plot
Well, that's bizarre-looking on the surface will grant...I'm not sure how to fix up the bar widths directly but I can give you a...

9年弱 前 | 3

| 採用済み

回答済み
Generate a Datastore for binary data?
I've not used it much but have read some of the doc...see <http://www.mathworks.com/help/matlab/import_export/what-is-a-datastor...

9年弱 前 | 1

回答済み
Reading a file, storing data as variables, but unable to access them?
_"...when I run my program, I get 'ans' instead of any variable 't'"_ Because you're calling the function without a LHS into ...

9年弱 前 | 2

| 採用済み

回答済み
How can I format fscanf to read strings of different lengths, some with spaces in them?
Can't always read a mal-formed input file; if the data strings contain embedded blanks they need to be quoted strings. Probab...

9年弱 前 | 0

回答済み
How to read data from txt between 2 lines with the same symbol?
That's pretty simple to do, actually... fid=fopen('yourfile.txt'); % open the file while ~feof(fid) % begin ...

9年弱 前 | 1

| 採用済み

回答済み
How can I sort my data by within a sorting
doc sortrows Following up on previous note -- given >> x=rand(10,1); y=rand(size(x))-0.5; >> [x y] ans = 0.15...

9年弱 前 | 0

さらに読み込む