Answered
error when calling a function inside of another function
In *orbit*, line 16, you open a { and close } before the end, last line. Remove them. Then variables *r0* and *a* are not defin...

15 years ago | 0

| accepted

Answered
CellStruct
You may try out my <http://www.mathworks.com/matlabcentral/fileexchange/26119-pivotunpivot, Pivot/unPivot> submission, I creat...

15 years ago | 0

| accepted

Answered
Integration of a function
This is what I get: syms z f = 1./(z.^2+1); sol = f./int(f,z,0,1) sol = 4/(pi*(z^2 + 1)) Oleg

15 years ago | 0

Answered
Time and Date
Quote: "I had my data set up as dd:mm:yyyy hh:mm:ss with each one in a separate column with the rest of my input variables, so I...

15 years ago | 0

Answered
How can I store my results from each iteration of a FOR loop?
Yes, check this out: <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F> On the oth...

15 years ago | 3

| accepted

Answered
How do I make this graph? Mean ensemble time series graph with range of uncertainty.
Try out <http://www.mathworks.com/matlabcentral/fileexchange/27485 boundedline> on the FEX. If not satisfied there are sever...

15 years ago | 0

Answered
What causes MATLAB to execute pasted code automatically?
A visual example: <<http://i55.tinypic.com/rrjd51.png>> In the first part, if you select down to the next line, you includ...

15 years ago | 0

Answered
Why do I get an invalid dimensions error using TriScatteredInterp?
As Jiro pointed out xd, yd, zd should be column vectors. Whereas you're doing: xd=[xd1,xd2,xd3]; yd=[yd1,yd2,yd3]; zd=[...

15 years ago | 0

| accepted

Answered
xlswrite and the single quote ' character
Well, post the entire error and I don't get any problem with: xlswrite(filename, {'test'},'Sheet1','A1') To have 'test you h...

15 years ago | 0

| accepted

Answered
How do I clear the contents of Excel by sheet?
A slightly more elaborate way with ActiveX: % Name of the excel file filename = 'C:\Users\Oleg\Desktop\myExcelFile.xlsx'...

15 years ago | 3

Answered
Data average
Import all the files, combine data, calculate mean. This is as far as I can go w/ the details you supplied. What files you hav...

15 years ago | 0

Answered
The FIND command returns an empty matrix for a number I know exists
Look at second output: [C,I] = max(...) Oleg

15 years ago | 3

Answered
File column selection in a matrix using a criterion
I assume that your criteria is that all (any is a different criterion) of the values in column 3 are smaller than 100: % Cr...

15 years ago | 1

| accepted

Answered
Can I loop on a specific element in an array?
You should be carefull with terminology here. A cell is a fundamentally different class if compared to a double matrix. The way ...

15 years ago | 1

Answered
How do I tell which toolboxes my program uses?
There is also a very useful submission by Us <http://www.mathworks.com/matlabcentral/fileexchange/17291-fdep-a-pedestrian-functi...

15 years ago | 2

Answered
Outputting to string
Read this <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ 4.6> Oleg

15 years ago | 3

Answered
Y-Axis location in MATLAB plots
Or another submission <http://www.mathworks.com/matlabcentral/fileexchange/22956-axescenter, axescenter> by Matt Fig: <<http:...

15 years ago | 1

Answered
normal distribution range
Directly from the example in the documentation of randn: r = 50 + 2.*randn(10000,1); hist(r,100) <<http://i53.tinypic.c...

15 years ago | 1

Answered
Input argument "flag" is undefined.
For those who can't read your function: function [out1,out2,out3]=func(flag,s,x,e,alpha,beta,gamma) switch flag ...

15 years ago | 0

Answered
How can I write loops in MATLAB?
An example. Lets calculate the compounded amount of money you have today for the next 10 years: M = 100; % Stock today...

15 years ago | 2

Answered
How do I plot data labels alongside my data in a scatter plot?
To make it clear with a full example: % Example input X = rand(10,1); Y = rand(10,1); % example labels textCell...

15 years ago | 5

Answered
Is there a 100% stacked area chart in MALTAB?
doc area The example from the help: Y = [1, 5, 3; 3, 2, 7; 1, 5, 3; 2, 6, 1]; area(Y) grid on colormap summer set(gca,'La...

15 years ago | 2

| accepted

Answered
Working with a three dimensional matrix
The problem is how you construct _kunn_, in general there are so many nested loops that my suspect is you end up overwriting the...

15 years ago | 0

| accepted

Answered
k-means with NaNs in input
Drop the missing values then: newdata = data(~isnan(data)); Oleg

15 years ago | 0

Answered
MATLAB Textread Issue
Try to consider endofline chars as whitespace: [name,year,month,day,hour,mins,secs,x,y,z,sic,eph,nno,x_v,y_v,z_v,x_pol,...

15 years ago | 0

| accepted

Submitted


Set functions with multiple inputs
Intersectm, ismemberm, setdiffm, setxorm, unionm with multiple inputs. Ex: intersectm(a,b,c,…).

15 years ago | 1 download |

5.0 / 5
Thumbnail

Submitted


WWW.RANDOM.ORG random integers/sequences/strings
Get true random integers, sequences or strings

15 years ago | 1 download |

4.0 / 5
Thumbnail

Submitted


Display ws variables size in KB, MB or GB
Displays with appropriate unit of data storage. Sorting by size/name (non c.sensitive) is supported.

16 years ago | 1 download |

4.8 / 5
Thumbnail

Submitted


Pivot/unPivot
Group a flat dataset into pivot table and unpivot it back

16 years ago | 1 download |

4.33333 / 5
Thumbnail

Submitted


MS SQL JDBC connection
Establishes JDBC connection to MS SQL Easier to use than "database(…)" NEW! Windows authentication

16 years ago | 1 download |

0.0 / 5
Thumbnail

Load more