**Statistics**

RANK**12**

of 239,492

REPUTATION**14,110**

CONTRIBUTIONS

**41** Questions

**5,344** Answers

ANSWER ACCEPTANCE **
21.95%
**

VOTES RECEIVED**2,110**

RANK

of 16,817

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

I am getting the following error in my code: "Unrecognized function or variable 'f'. " How do I correct this error? someone can help me in this TIA.

You're using f in line 1 when you don't define it until line 3. Move line 1 to anywhere after but before use amp in line 11 -- ...

16 minutes ago | 0

How to plot only the matches of two different datetime?

Convert A and B to timetables, then use innerjoin ttC=innerjoin(ttA,ttB); will leave timetable ttC with the times that are uni...

2 hours ago | 0

How do i calculate the sum of each row

I'd suggest to use readtable instead, first... T = readtable('studentmarks.txt'); T.TotalMarks=sum(T{:,3:end},2); presuming t...

2 hours ago | 1

| accepted

Convert an array of type char to hex values

See the doc description for the input argument to hex2dec hexStr — Text representing hexadecimal numbers character array | cel...

16 hours ago | 0

How do I find the corresponding date/time value of the maximum of my data in a table?

That's what the optional return index value of max is for... [mx_Smooth_Mel,ixMel]=max(T.Smooth_Melatonin_concentration); [mx_...

24 hours ago | 0

converting Excel formula to Matlab (adding two arrays different lengths)

C=[0;cumsum(B)]; where B is your variable in column B MATLAB uses vector operations; to append a vector to a single value (or ...

1 day ago | 0

How can one specify the color of comparison bar chart?

Just answered for another a few minutes ago @ <problem-with-grouped-bar-plot> You also have a grouped bar plot as your data are...

1 day ago | 1

| accepted

Problem with "grouped" bar plot

"... this is not a real grouped bar plot since I am not using b = bar(model_series, 'grouped'), isn't it?" Au contraire, the do...

1 day ago | 0

Export iterative matlab program output in matrix to excel with a reduction in matrix size.

" I would like to rid of the last row and column of the 7x7 matrix and get 6x6 for further computation. " That would simply be ...

1 day ago | 0

how to run multiple number of regressions?

tRegress=rowfun(@(x,y)polyfit(x,y,1),T,'GroupingVariables',{'Location'}, ... 'InputVaria...

1 day ago | 0

| accepted

how convert the vector to matrix ? unknown number of columns

A=1:9; nRow-3; >> A=reshape(A,3,[]) A = 1 4 7 2 5 8 3 6 9 >> The posted in the...

1 day ago | 0

Divide each element of an array by the corresponding element of another array

c=a./b; Read the "Getting Started" to get basic syntax...

2 days ago | 1

How do I get a "≤" sign to appear in my function's HELP documentation?

<unicode-characters-in-m-file>

3 days ago | 0

HELP Plotting hourly time series data

Use the builtin tools and datetime instead of deprecated datenum/datetick uvFile = 'C:/Users/darcy/OneDrive/Desktop/Darcy/temp ...

3 days ago | 0

| accepted

How to plot curve instead of straight line in MATLAB?

A demo built around a rough approximation of your figure... figure % approximate the quadrilateral above plot([5 5],[250 380]...

4 days ago | 0

Compare a column in two different excel-sheet

Just read both sheets -- CODES=categorical({'bad','good'}).'; % the output categories A1=readmatrix('Workboo...

4 days ago | 0

Perform a calculation using data from multiple tables

You can probably most simply just augment your flight table...something like-- % preparations tDist=readtable('Airport distanc...

4 days ago | 0

Correct way to calculate Moving Mean for Ozone hourly values

1, 3. "movmean(A,[kb kf]) computes the mean with a window of length kb+kf+1 that includes the element in the current position, k...

4 days ago | 0

| accepted

How do I get readtable to skip lines with certain text?

That's not a great format for readtable to try to parse -- it's got the variable names as columms and so are interpreted as data...

5 days ago | 0

Problem with importing a text file

"... it only imports the lower part:" Of course, because the file is a mishmash of stuff and only the last section is a regular...

5 days ago | 0

| accepted

Conversion and Merger of date and time using datetime

Didn't do you any favors in using the ":" for the separator of the msec field, did they? :) But, the above looks like should w...

5 days ago | 0

Using find command to group data into bins

find is not the tool for this; see grpstats or groupsummary or for more generality, findgroups combined with splitapply

5 days ago | 0

How can I write division formula in label of matlab app designer?

The above LaTex string is bad syntax -- here's a simplified illustration of what is needed -- your expression is far more comple...

5 days ago | 0

| accepted

Call two folders (or directories) with the same file in the script

basedir='C:\Users\Jacqueline\ERA5\Downloads\'; fn='ERA5_2010.nc'; N=2; for i=1:N fqn=fullfile(basedir,num2str(i,'%02d'),fn...

5 days ago | 0

error bars on grouped barplot with 2 axis

Little tricky -- although in a recent release TMW finally made the XEndPoints property visible so at least can see it is there.....

5 days ago | 0

| accepted

How to adjust the legend of pie chart

legend is limited in its flexibility, unfortunately. A given axis can have only one legend and the second axis/figure "knows nu...

6 days ago | 0

Creating hourly average data with geographic coordinates to produce 3D matrix

rowfun to the rescue yet again... :) tData=readtable(); longrid=-180:10:180; latgrid=-90:10:90; [~,~,~,tData.lon_g,tData.lat...

6 days ago | 0

| accepted

how to pass a function with internally set parameters as an input to another function

a0] = fscoeff(ft1) The above, indeed, is calling ft1 without any arguments and it expects, nay! - requires one. MATLAB evalua...

6 days ago | 0

How to plot the average and std shade of 4 different datasets?

I'm rushed for time so not complete solution, but the outline of how to proceed... [mxx,ix1]=max(dataset1_x); % ...

6 days ago | 1

| accepted

printing a table made of 3 arrays

disp() just displays something to the command window without the "variable =" prefix; it doesn't save anything. Also, the hint ...

7 days ago | 1