Answered
What is the correct syntax to avoid 'Error: ()-indexing must appear last in an index expression'
_DataSetU(num2str(FlightCond))=DataBase((numel(FlightCond)),j);_ To get the value within a cell use the curlies... Dat...

12 years ago | 1

| accepted

Answered
how to scan text
When you get to that line, either by *headerlines* or previously parsing if you need some of those data, then n=cell2mat(te...

12 years ago | 0

Answered
How to change the linewidth in a figure before actually plotting some?
Use the technique of the referenced page but set the default for the figure in question -- set(gca,'DefaultLineLineWidth',2...

12 years ago | 2

| accepted

Answered
Determine the maximum with indexax function (plotyy)
What's _Y2_??? [dmx,idx]=max(distance); % the distance max, location tmx=time(idx); % time of max distance ...

12 years ago | 2

Answered
Help with if construct error?
When you enter a selection past the first two the length of the comparison string changes--by happenstance "English" and "Histor...

12 years ago | 0

Answered
The lines inside my while-loop are never executed
_...1 is certainly unequal to nothing, right?_ Yabbut... :) The ~= comparison fails because the two results are incompatib...

12 years ago | 0

Answered
how to plot a graph like this
box on

12 years ago | 1

Answered
Delete line from subplot: Handles not known
You determine which set of handles belong to which axes by using *subplot(M,N,p)* to set the _p_ axes as the current axes _befor...

12 years ago | 1

| accepted

Answered
Input into a edit text box from a file ..
Read the file with *impordata*, *textscan* or whatever is appropriate depending on the file structure then set the 'String' prop...

12 years ago | 0

Answered
How do I write a large multi-dimensional cell array into Excel?
You would need to write the underlying array(s), yes. As it appears you have a fixed number of columns but variable number of r...

12 years ago | 0

| accepted

Answered
Understanding the transformation of values when plotting logscale.
The *semilogy* axes values are still linear values, _not_ the log. log10 of 10^-1 or 10^-6 is -1 and -6, respectively. So the ...

12 years ago | 2

| accepted

Answered
plotting functions with many inputs
Use arrays and it's still *plot(x,y)* -- that's the power of Matlab.

12 years ago | 0

Answered
Difficulty in fitting two lines with polynomials
Classic piecewise regression problem...use some of the File Exchange tools... <http://www.mathworks.com/matlabcentral/fileexc...

12 years ago | 1

Answered
Bar plot with two Y-axes
_...I get only two red entries in the legend. How may I solve it?_ Use the handles, Luke... :) You've faked which bars are t...

12 years ago | 1

Answered
regroupe the results in a matrix
>> s=find(f(:,1)) s = 1 4 6 7 >> c=f(s,2) c = 0 3 5 6 >> Looks like yo...

12 years ago | 0

Answered
Using a char matrix as a text legend
txt=num2str(total(:,2),'%.2f'); Fixup format string as desired, of course. NB: *text* works equally well with cell strin...

12 years ago | 0

| accepted

Answered
Reding csv file which contains numbers and strings
Try *importdata* but it's not absolutely guaranteed. With the regular numeric format it _should_ be able to figure it out. B...

12 years ago | 1

| accepted

Answered
ismember for string matrix
You've got string arrays here; use the 'rows' optional argument to treat them as such instead of as individual characters... ...

12 years ago | 0

Answered
How to fill in a matrix and compute its binary frequency?
Leap years not accounted for? If not, as the above would indicate, then R=reshape(P_Data,365,[])>0;

12 years ago | 0

Question


Correlating bar patches and legends
OK, I'll try again on another related to the series of queries/comments over last few weeks... *bar* returns a handle to a se...

12 years ago | 0 answers | 0

0

answers

Question


Selecting or setting hatching patterns?
AFAICT there are no predefined hatching patterns to apply to *bar* or *surf* patches for distinguishing areas? Seems like a maj...

12 years ago | 1 answer | 1

1

answer

Question


Anomalous GRPSTATS behavior with ORDINALs?
Related to previous data categorization query and follow-up comment recently added to it-- One of the category variables crea...

12 years ago | 0 answers | 0

0

answers

Question


Effective Categorical Coding Scheme?
Background -- Have a dataset of the various accounts, income and expense for a educational foundation. Within one group of, say...

12 years ago | 0 answers | 0

0

answers

Answered
Accessing data from a file without storing it
Per comments above, my initial pass would look something like n=cell2mat(textscan(fid,'%dG%*s',1,'headerlines',5)); % firs...

12 years ago | 0

| accepted

Answered
Hello Sir, I am writing a equation in matlab. in this equation, i have got some problem related to greek word epsilon.
<http://www.mathworks.com/help/releases/R2014b/matlab/matlab_prog/variable-names.html> Can't do it; use _epsilon_ or somethin...

12 years ago | 0

Question


Syntax other than evil eval to build dynamic dataset?
Have a series of Excel spreadsheets (income/expense for an organization with which I'm involved). Have built a script logic tha...

12 years ago | 2 answers | 0

2

answers

Answered
reshaping to display the same result of a function
My initial answer was written to do that but then I looked at the code you had written and followed your lead of the two vectors...

12 years ago | 1

| accepted

Answered
conditional deletion of riws
if (M(i,j)>=0.7) & (M(i,j)<0.1) The above is impossible...you wrote "0.1" for "1.0" in the second comparison

12 years ago | 1

Answered
finding the maximum and minimum value of specific rows in a cell array
The simplest way to do the averaging over a fixed block size is to *reshape* by that number, apply the operation and then *resha...

12 years ago | 2

Load more