Answered
Ticks label problem Julian day
Convert the numeric values to datetime either as time or duration depending on the meaning. You'll need to pick the appropriate...

9 years ago | 0

Answered
How to read CSV file with different format ?
A) readtable B) textscan C) interactive use the import tool...

9 years ago | 0

Answered
filtering out two months with a code
Month1 == 10; % make variables instead of hardcoded Month2 == 11; % "magic" numbers datelike1= datelike(iswithin(d...

9 years ago | 0

| accepted

Answered
need to analyze individual components of an array
That sort of comparison operation is builtin Matlab vector operations...I wouldn't call the test you outline above a "tolerance"...

9 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 2

Answered
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 years ago | 0

Answered
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 years ago | 2

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
Problems Creating a Random Graph
That's MUPAD syntax; requires the Symbolic Toolbox.

9 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 1

Load more