Answered
Why can't I access day, juliandate?
It's in the aerospace toolbox, are you able to pull it? which juliandate -all _C:\Program Files\MATLAB\R2015a\toolbox\a...

10 years ago | 1

Answered
confusing error while using Table
locationsTable = table(splitLocations{:}, 'VariableNames', headerNames); It's seeing splitLocations as one variable, not fo...

10 years ago | 1

| accepted

Answered
Vectorizing a recursive for-loop
Usually |cumsum| and |diff| will be the two functions that help referencing adjacency. Time2 = cumsum([DT(1)/2 0.5*(DT(2:...

10 years ago | 0

| accepted

Answered
Running a Unit Test for multiple functions
<http://blogs.mathworks.com/loren/2013/03/14/using-the-matlab-unit-testing-infrastructure-for-grading-assignments/> You might...

10 years ago | 0

Answered
Running a Unit Test for a script
<http://www.mathworks.com/help/releases/R2015a/matlab/matlab_prog/write-script-based-unit-tests.html>

10 years ago | 0

| accepted

Answered
How to solve non linear equation?
Assuming you know m, this can be solved with |fsolve| in the Optimization Toolbox doc fsolve

10 years ago | 0

Answered
Symbolic Integration problem with respect to a variable
<http://www.mathworks.com/help/releases/R2015a/symbolic/int.html> Scroll down to the "Tips" section. Either |int| cannot fin...

10 years ago | 0

Answered
running matlab in parallel on a cluster
Is it installed: ver('distcomp') Is a license available: license('test','Distrib_Computing_Toolbox')

10 years ago | 0

Answered
Homework 4, Problem 2, Trouble
*checkerboard that takes as input two positive integer scalars* Yours is taking a matrix, A, it should take in n, m and not h...

10 years ago | 0

| accepted

Answered
Getting error: "Movie cdata must be of type uint8 array" despite the fact that my movie cdata *is* of type uint8 array.
Minimal working example, does this work: f = getframe movie([f f],5) If it doesn't then you're probably shadowing a com...

10 years ago | 0

Answered
How can i execute Matlab m.file in Excel VBA?
You could use Spreadsheet Link EX which takes care of dealing with COM for you so that you can seamlessly move data back and for...

10 years ago | 0

Answered
Data Acquisition Toolbox in 64-bit Windows
Yes, only 32bit Simulink is supported with DAQ (as of 15a).

10 years ago | 0

Answered
when I run pool calculation, I got following error message, can someone help me?
It looks like the GT suite Java is overriding MATLAB's. Try moving MATLAB to the front of the operating system file path.

10 years ago | 0

| accepted

Answered
How to hide one of the figure plot borders?
Just use |plottools| to make whatever changes you want (including adjusting the size) plottools on Or click the icon on ...

10 years ago | 0

Answered
Plotting experimental data from excel spread sheet vs model data on same set of axes
plot(x1,y1,'rp',x2,y2,'b*') This will put both plots on the same graph at their correct x/y locations.

10 years ago | 0

| accepted

Answered
Vectorization of double for loop
Just preallocating P will speed this up a lot P = cell(Nx^2,1) before the loop

10 years ago | 0

| accepted

Answered
converting times from excel file using datetime, datestr, and datenum
datestr uses MM to indicate minutes, you're indicating months above. datestr(datenum('13:55:20','hh:MM:ss'),'hh:MM:ss')

10 years ago | 1

| accepted

Answered
How to create a title in plot such that it has the same name as the .txt file name being imported?
Use |uigetfile| to select the file and then call |uiimport| with it [file,filepath] = uigetfile() S = uiimport(fullfile(fi...

10 years ago | 0

| accepted

Answered
Simulink callbacks not displaying text in MATLAB command window
fprintf(2,'Hello World') Will pipe to the command line in red (standard error).

10 years ago | 0

Answered
Divide column 17 of table by 365
y = x{:,15}./365 x{:,16} = y

10 years ago | 2

| accepted

Answered
axes(handles.axes1) doesn't work in localEventListener function in GUI
_handles_ contains the handles to the user interface and need to be passed in explicitly to the callback. When you register the...

10 years ago | 1

| accepted

Answered
URGENT: Need to remove negative values from a text file from a certain column
Open the file with the import tool (right click on it, import data), select | as the delimiter, import it. From there, extract ...

10 years ago | 0

| accepted

Answered
Receive multiple subscripts from linear index of matrix A, where ndim(A) is uknown.
Steven's answer asks the why which is a good question. This is especially true since you're iterating over all of the elements ...

10 years ago | 0

| accepted

Answered
Need help alternating a code
expected = [3; 4]; badrow = find(~bsxfun(@eq,reshape(a(:,end),2,[]),expected),1,'first') If you're doing this row by row...

10 years ago | 0

Answered
How to merge function handles in matlab?
You can store those function handles in a cell using a |for|-loop or just run the for-loop over the k values. for ii = 1:10...

10 years ago | 0

Answered
Cell contents reference from a non-cell array object ERROR in the following function
= [y{b} (l)] : The {} are for extracting from a cell and () are for indexing into the elements in the cell since it will no...

10 years ago | 0

| accepted

Answered
Need Help with a Simple Symbolic Equation Solve in Matlab 2015a
One equation with two unknowns. What do you expect? Torsten's suggestion gives you the result for Z: ZZ = solve(abs(k/(...

10 years ago | 0

Answered
how to do a page break in Programmatic Report Creation
You |append|-ed _head1_ before adding the Pagebreak. You'll need to re- |append| it after or wait to append until it's in the r...

10 years ago | 0

Answered
Report Generator Tutorial w/examples for DOM API? Manual is WAY too cryptic.
Doug, email me and I can send you a few simple examples that work with Word templates to create reports ( first.last@whereIwork....

10 years ago | 0

Load more