Respondida
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(:...

más de 12 años hace | 4

| aceptada

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

más de 12 años hace | 0

Respondida
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 *()* ...

más de 12 años hace | 2

| aceptada

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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) ...

más de 12 años hace | 0

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

más de 12 años hace | 2

| aceptada

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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:...

más de 12 años hace | 0

Respondida
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> ...

más de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 1

| aceptada

Resuelto


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....

más de 12 años hace

Respondida
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 ...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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) ...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

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

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Respondida
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>

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

Respondida
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,...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 1

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

más de 12 años hace | 0

Respondida
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]; ...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Cargar más