已回答
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 前 | 0

| 已接受

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

12 years 前 | 0

已回答
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 前 | 0

| 已接受

已回答
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 前 | 0

已回答
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 前 | 0

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

12 years 前 | 0

已回答
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 前 | 0

| 已接受

已回答
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 前 | 0

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

12 years 前 | 0

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

12 years 前 | 0

| 已接受

已回答
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 前 | 0

| 已接受

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

12 years 前 | 0

| 已接受

已回答
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 前 | 0

已回答
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 前 | 1

| 已接受

已回答
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 前 | 0

已回答
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...

13 years 前 | 1

| 已接受

已回答
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 ...

13 years 前 | 0

| 已接受

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

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
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...

13 years 前 | 1

已回答
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');

13 years 前 | 1

| 已接受

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

13 years 前 | 1

| 已接受

已回答
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...

13 years 前 | 0

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

13 years 前 | 0

已回答
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...

13 years 前 | 0

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

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
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 ...

13 years 前 | 0

| 已接受

加载更多