回答済み
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年以上 前 | 0

| 採用済み

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

12年以上 前 | 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年以上 前 | 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年以上 前 | 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 ...

13年弱 前 | 0

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

13年弱 前 | 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...

13年弱 前 | 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...

13年弱 前 | 0

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

13年弱 前 | 0

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

13年弱 前 | 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]; ...

13年弱 前 | 0

| 採用済み

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

13年弱 前 | 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...

13年弱 前 | 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 * ...

13年弱 前 | 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...

13年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 1

| 採用済み

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

13年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 0

| 採用済み

さらに読み込む