Answered
how to access data from cell array within another cell array
Depends on _how_ you want to access, them...by cell by element is C{indxCell}(indexInCell) indexInCell is any range of ...

11 years ago | 1

Answered
Relocate element from a row to another
Well, it's not possible to write anything except the specific answer without a definition of the logic. Anything else is indis...

11 years ago | 0

Answered
Loop through gridded data
... for I=724:747; J=2:8; k=1:length(aN_Tang); l=1:length(rN_Tang); if ((I<LongitudeA(k)<=I+1 & J<Depth...

11 years ago | 0

| accepted

Answered
How to plot one variable (density for example) at a 2D contour graph ( time and depth for example)?
Look at doc meshgrid for an example of how *surf* and friends expect the data. Depending on the arrangement of the inde...

11 years ago | 0

| accepted

Answered
Creating a matrix after giving initial conditions
Since *dir* returns a sorted list, I think I'd just process it similarly as you are but simply test the days within the loop by ...

11 years ago | 0

Answered
Helping filling in missing data sections with NaN
As Per notes, depending on how you built the time stamp vector vis a vis how it was generated in the sample data set it's almost...

11 years ago | 1

Answered
Problem during a while loop
_" I found that the variable "col" keeps incrementing whereas ped equals to ped_form2, sort of missing the right cell with the g...

11 years ago | 0

Answered
Help with saving a matrix
Hmmm....answering my own question--ok, they are a little skimpy on generalities, aren't they? fmt=['%.3f ',1,size(X,2)-1) '...

11 years ago | 0

Answered
open text file constructed in a specified manner
*textscan*

11 years ago | 0

Answered
how can i select part of column from matrix 2000*6
Addresses are row, column x=m(1400:1500,1); Simply put the numeric range in with the colon operator for rows or columns...

11 years ago | 0

Answered
Save in fig file only the data within the limits of the axes
Think you have to write a function to do it from the chosen final limits...not too difficult to do. xl=xlim; yl=ylim; % Re...

11 years ago | 0

Answered
Plotting parabolas and curves on MATLAB
Consider _i_, _j_, _k_ as _x_, _y_, _z_ and then look at doc meshgrid doc ndgrid with new eyes. For starters >> ...

11 years ago | 0

Answered
Change a string by the loop number
You can, but don't...see the FAQ for some reasons why not and how to do it "the Matlab way"... <http://matlab.wikia.com/wiki/...

11 years ago | 1

| accepted

Answered
Not showing the number of iterations in the output
The second *fprintf* statement is nested inside the first *if...end* test on the loop having completed the maximum number of all...

11 years ago | 0

Answered
How to plot XY graph for a changing Y value with fixed X intervals
Don't assign the y values to multiple variables(*), create an array instead. Then simply plot(x,y) where x=0.5*[1...

11 years ago | 0

| accepted

Answered
R-squared for Log-log graph
Evaluate the model in log-log space, transform those values back to non-log'ed values and then compute the error and total sums ...

11 years ago | 0

Answered
Attempted to access f(100); index out of bounds because numel(f)=1.
If you're trying to build a full array of friction factors vs Re number for the given values, then via the loop f=zeros(100...

11 years ago | 0

Answered
Trying to do a lot of compares within a bunch of arrays
Doesn't seem as though Step 2 really has any bearing (need for an "if"); the result is the same either way??? But, for Step 3...

11 years ago | 0

Answered
MATLAB : problem with bar graph
For the reference, use hBar=bar(X,Y,'basevalue',-100); Doesn't move the axes but is probably the effect you're looking f...

11 years ago | 0

| accepted

Answered
Creating a matrix after giving initial conditions
yr=2000; dn=datevec(datenum(yr,1,1,[0:3:24*(365+isleapyr(yr))-1].',0,0)) >> [dn(1:5,:);dn(470:485,:);dn(length(dn)-10,:)...

11 years ago | 0

| accepted

Answered
Load parts of VERY LARGE text file content and create a smaller matrix
OK, stuff's taken care of and I'm in for the evening (we're back to family farm; retired from the consulting gig so this is my f...

11 years ago | 0

| accepted

Answered
How to read comma separated input data containing values & stings which also has ',' & ';' used for separation?
doc textscan % NB: 'delimiter' Name-Value Pair with example for multiple delimiter characters.

11 years ago | 0

| accepted

Answered
Help with vector-valued (curved) splines
The data in the example forms the boundary from one "fin" at the upper left and follows the path around to the last point that (...

11 years ago | 0

Answered
Loop through csv file names and sum columns
See the FAQ at <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>, for your case the *dir* solution tow...

11 years ago | 0

| accepted

Answered
How can I color a plot based on range of values?
doc scatter

11 years ago | 0

Answered
How do I draw control charts given several data samples of size n = 5?
Are the 20 samples time with the five replicates? If so, then simply controlchart(X) if size(X) --> 20,5 in ot...

11 years ago | 0

| accepted

Answered
Transfer function fitting from ASCII-data file
The Signal Processing Toolbox contains the function *tfestimate* and related friends...

11 years ago | 0

Answered
Y axis named after a String value from a listbox selection
In what variable array are the strings stored for the dialog listbox? Use the index returned into that array to retrieve the va...

11 years ago | 0

Load more