Answered
How to create scatter3 with jet colormap
%Some data [xx, yy] = meshgrid(1:100); zz = cos(xx).*sin(yy).^2; % Scatter3, size 5, color based on zz scatter3(xx(:...

12 years ago | 4

| accepted

Answered
Contour of Strain of concrete plate
Yes. I had a chapter on this in my Master's Thesis :)

12 years ago | 0

Answered
Reuse parts of the matching expression as replace string
myarray = {'ABC 500mm';'DEF 3mm';'GHI 0.1mm';'3mmm'}; regexprep(myarray,'(\d)mm','$1') Explained: capture a token *()* ...

12 years ago | 2

| accepted

Answered
GUI: unused function warning
Typically this happens if you delete the pushbutton or if there is another function with the same name (red underline - otherwis...

12 years ago | 0

| accepted

Answered
How to detect new files since the last time a code is run?
Use logical indexing on the datenums to identify newer ones. idxNew = datenum(char({d.date})) > datenum(whenever_last_run) ...

12 years ago | 0

Answered
How can I display the editor window on the r2013a version ?
>> edit Or select "New script" from the *Home Tab*

12 years ago | 2

| accepted

Answered
Wrapper around GriddedInterpolant in Simulink
Any reason why you don't want to use the nd-lookup table block in Simulink? <http://www.mathworks.com/help/releases/R2013b/si...

12 years ago | 0

| accepted

Answered
How do I remove a matrix from a published document?
Don't print them to the command line by putting a semicolon after them and don't call |disp| or |fprintf| with them. Compare:...

12 years ago | 0

Answered
Saving the variables in a function call and using them next time the same function is called
Use a |persistent| variable or a nested function. <http://www.mathworks.com/help/releases/R2013b/matlab/ref/persistent.html> ...

12 years ago | 1

| accepted

Answered
Adding information to a cell array without using a loop?
Accumarray! C = accumarray(Array(:,1),Array(:,2),[],@(x){x}).' Azzi's solution is typically the safer approach - safegua...

12 years ago | 0

| accepted

Answered
Can I upgrade from R2013a to R2013b?
Student versions do not have an upgrade option and there was not a student version released for R2013b. Your university mig...

12 years ago | 1

| accepted

Solved


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

12 years ago

Answered
Fast computation of diagonal elements
m = 100; n = 10000; A = rand(m,n); B = rand(m); timeit(@()diag(A'*B*A)) % R2013b _ans = 0.8128_ So it ...

12 years ago | 0

Answered
Assign hotkey to custom shortcut
You can't assign a keyboard or hot key shortcut to your own shortcut but you can use Keyboard Mneumonics. To use these Click...

12 years ago | 0

| accepted

Answered
trying to create a simple plot. Get error 'Vectors must be the same length'
When you take the |diff| of t it subtracts each element of t from the next element leaving t one element shorter diff(1:3) ...

12 years ago | 0

Answered
How can i group each column of a matrix after i split a matrix into columns.
I would avoid creating the groups like you're proposing ( <http://www.mathworks.com/matlabcentral/answers/57445 FAQ>) and instea...

12 years ago | 0

Answered
How i can find the formula from an linear interpolation in cftool.
There really isn't a formula for the surface. It's a _piecewise linear_ surface so it's a single formula for a plane at each lo...

12 years ago | 0

Answered
Solve a 4th degree polynomial using vector
I would subtract through by y and use |fzero| to solve for x. doc fzero

12 years ago | 0

Answered
Undefined function 'bilinear' for input arguments of type 'double'.
Apparently you do not have a license available for the Signal processing Toolbox. Please talk to your IT department or friendly...

12 years ago | 0

Answered
How to create a dataset as input to a neural network for a character recognition system?
There is a repository of hand-written characters here: <http://www.cs.nyu.edu/~roweis/data.html>

12 years ago | 0

| accepted

Answered
how can I solve the debugger problems when using fuzzy commands?and how i connect matlab with opnet modeler?
Run: dbstop if error This will stop at the line throwing the error and will let you investigate the workspace and direct...

12 years ago | 0

Answered
Why does the crosshair of ginput erase the underlying plot created with surf?
My guess is this is related to your OpenGL hardware drivers. First, try updating your graphics drivers. If that does not work,...

12 years ago | 0

| accepted

Answered
How do I change MatLab's internal table of holidays (BUS/252)?
If you look at the source code for |holidays| >> edit holidays.m You'll see an option for _altholidays_, this is a f...

12 years ago | 0

| accepted

Answered
how do i activate my MATLAB software?
Contact your IT department for instructions. If they can't help you, call MathWorks' installation support team.

12 years ago | 0

| accepted

Answered
Circular patch using COLFILT?
Inside of your anonymous function, you could use logical indexing to only apply the operation to the circular part of the rectan...

12 years ago | 1

Answered
Rotating LabelTick in Colorbar
<http://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabelrotate> Use this tool to turn the ticks to text as IA has...

12 years ago | 0

Answered
How to rearrange values in a matrix
There are a few elegant ways to do this. I would use |accumarray| data = [ 1 1 5 1 2 6 1 3 7 2 1 8 2 2 9 2 3 2]; ...

12 years ago | 0

| accepted

Answered
How can i debug a user defined function, when called in main program? i'm not able stop the execution when in the function to verify the data/work space?
Do you have a |clear all| in your script that's clearing out the breakpoints? If so, remove the "all" from clear all. Person...

12 years ago | 0

Answered
Steparate a sting using strtok function
If you're on R2013a or newer (I believe), use |strsplit|: example = 'a-b-c-d'; pieces = strsplit(example,'-') And for m...

12 years ago | 0

Load more