Respondida
How can I easily get for each day in 2013 the type of day? ( Weekday, Saturday, Sunday)
Hint: >> day_of_year = 1; >> [ num, str ]= weekday( datenum( 2013, 1, 1 ) + day_of_year - 1 ) num = 3...

más de 12 años hace | 0

| aceptada

Respondida
Does mathworks support a classdef inspector?
See * <http://www.mathworks.com/matlabcentral/fileexchange/17935-uiinspect-display-methods-properties-callbacks-of-an-object ...

más de 12 años hace | 0

Respondida
What is the difference between Matlab Answers and Matlab Newsreader ?
* Matlab Answer is a forum run and controlled by The Mathworks * Matlab Newsreader is an interface to the Internet forum, comp...

más de 12 años hace | 0

| aceptada

Respondida
For loop FASTER than matrix multiplication
_"matrix operations are typically much faster than loops in MATLAB"_. With recent releases of Matlab, that is a rule with many e...

más de 12 años hace | 0

Respondida
How can I sum the digits of an interval of numbers and write in a file the ones that sum 13?
Yes, hint: >> num = 94; >> str = sprintf( '%d', num ); >> sum( sscanf( str, '%1d' ) ) ans = 13 ...

más de 12 años hace | 0

Respondida
Deleted variables reappearing in workspace.
Seriously, using functions instead of scripts is a large part of the remedy.

más de 12 años hace | 0

Respondida
Cannot import large .dat files
Comments: * _"[...]can open it with vim."_ That is not a sufficient requirement! There could be a special string indicating a...

más de 12 años hace | 0

| aceptada

Respondida
One specific line of a function is taking too long
This experiment on R2013a 64bit, Win7 and *8GB* suggests * try make K global * a copy of |val| is created by |cssm_passing_b...

más de 12 años hace | 0

Respondida
related to matrix partitioning?
See <http://www.mathworks.se/help/matlab/ref/reshape.html reshape, Reshape array>

más de 12 años hace | 0

Respondida
getting a parse error at '='
Try fft_values( abs(fft_values) < threshold ) = 0; Matlab uses "()"

más de 12 años hace | 0

| aceptada

Respondida
How can I convert every floating value in cell to integer?
Not with a standard function. However, it is possible with a small script >> cellfun( @(num) int16(num), {[1,2,3],[4,5]; ...

más de 12 años hace | 0

| aceptada

Respondida
how to create character matrix help
liste = cell(4,1); ... liste{1+a,1} = myfunction( process); ... liste = char(liste); or initialize ...

más de 12 años hace | 0

| aceptada

Respondida
Updating object properties after instantiation
What you describe sounds weird. Without more detail it is hard to say what is going on. Does your class look something like this...

más de 12 años hace | 0

Respondida
Getting error code "unable to interpret LaTeX string..."
This produces a result text(.2,.2,'Ea=$\displaystyle\frac{-1.436}{17}$','interpreter','LaTeX') With your example * ...

más de 12 años hace | 1

| aceptada

Respondida
Please i need URGENT help how to make a demo??
Search the File Exchange for <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=adaboosthttp://www.m...

más de 12 años hace | 0

Respondida
debugging a program
Why do you want to use KEYBOARD? That's not the best way - in my opinion. Thus, I would: # Put the code in a function. # Us...

más de 12 años hace | 1

| aceptada

Respondida
Is multiplying a matrix or a constant with another constant and multiplying a const. with a variable which stores a constant different?
Here are some links on debugging in Matlab * <http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ Debugging in ...

más de 12 años hace | 0

| aceptada

Respondida
debugging a program
Here are some links on debugging in Matlab * <http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ Debugging in ...

más de 12 años hace | 0

Respondida
How to create a custom function?
* See: <http://www.mathworks.se/help/matlab/function-basics.html Function Basics> and * give it an honest try * if you run int...

más de 12 años hace | 0

Respondida
Writing to file with loops and loop error
1. Probably |segarray(:,6)| is empty >> unique({[]}) Error using cell/unique (line 86) Input A must be a cell a...

más de 12 años hace | 0

Respondida
How to close other program that matlab calls
If on Windows and you don't find any solution. Last resort is the DOS command <http://technet.microsoft.com/en-us/library/bb4910...

más de 12 años hace | 1

Respondida
How do I create a stacked bar graph from values in a structured array?
Try figure; bar(1:3, cat(1,patient.percentages{:}), 0.5, 'stack');

más de 12 años hace | 1

| aceptada

Respondida
Problem w/ the setfield function
Why use |setfield|? Does this do what you want? patient.percentages{3} = [healthy_exposed, pus, necrotic];

más de 12 años hace | 1

| aceptada

Respondida
Addition of time series extracted from a file
Study this example: M = randn( 1000, 10 ); ix = [ 3, 5, 7 ]; %% S = sum( M(:,ix), 1 ); it retu...

más de 12 años hace | 0

Respondida
Automatically running a program for files in a folder
Most probably, YES, with something like sad = dir( fullfile( 'your_folder', '*.zip' ) ); for s = transpose( ...

más de 12 años hace | 0

Respondida
Why does streamslice not work with single precision data?
It looks like a bug to me (R2013a). An example from the documentation works fine with double, but produces nothing but the de...

más de 12 años hace | 0

Respondida
How to output multiple figures?
Warning: not tested Replace saveas(f,'c:\image_i.png') by saveas( f, sprintf( 'c:\\image_%i.png', i ) )

más de 12 años hace | 0

Respondida
Why does matrix power give wrong answer?
See * <http://floating-point-gui.de What Every Programmer Should Know About Floating-Point Arithmetic> * <http://docs.oracle...

más de 12 años hace | 0

Respondida
I have a function tied into a pushbutton, but I want it to run automatically.
Disclaimer: I never use GUIDE. However, to know what I miss, I sometimes try it. Assumtion: you use GUIDE. Here is one wa...

más de 12 años hace | 0

Respondida
Speed and Multiple Vectors
This test probably has little meaning. (At least, Matlab is not smart enough to see that I take max of the same vector thousand ...

más de 12 años hace | 0

| aceptada

Cargar más