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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

Answered
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');

12 years ago | 1

| accepted

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

Load more