回答済み
Diagrams from matlab code
There is very little support to automatically make diagrams based on Matlab code. However, see * <http://www.mathworks.co...

12年以上 前 | 1

回答済み
how to store two decimal point number in array
val = round( 100*val ) /100; and see <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_...

12年以上 前 | 0

回答済み
Storing values in cell instead of struct
Try something like save( Route, '-regexp', '^f\w*\d$' ); this should save all variables, the name of which start with...

12年以上 前 | 0

| 採用済み

回答済み
Create a function which can stop itself if its internal function gives no reaction within XX seconds ??
AKAIK: There is no simple way to do that. We discussed a function, <http://www.mathworks.se/matlabcentral/answers/59491#answe...

12年以上 前 | 0

回答済み
Tackling the right structure type for my file2struct function of mixed data types.
I'm not exactly sure what your question is. However, this might help. It is the standard way to read and parse your file. Try th...

12年以上 前 | 0

回答済み
How can I determine the number of Headerlines for varying, non-rectangular text files so that I can parse it with textscan?
I'm not sure I understand whether your file contains one or more blocks of numerical data. Here is a file that handles both case...

12年以上 前 | 1

回答済み
Plot three graphics aligned.
Search the FEX for alternative to <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=subplot subplot...

12年以上 前 | 0

回答済み
How to save maximum value in each iteration
You overwrite |val| and |idx|. To avoid that, replace [val,idx] = max(n); by [val(i),idx(i)] = max(n);

12年以上 前 | 1

| 採用済み

回答済み
converting ASCII to decimal , please help .
try num = str2num( ascii_array ); and doc str2num

12年以上 前 | 0

回答済み
How can I check whether the strictly positive elements of each row of a matrix are equal?
arrayfun( @(jj) (length(unique(A(jj,(A(jj,:)>0)))) == 1),(1:size(A,1)) ) returns ans = 0 1 1

12年以上 前 | 0

| 採用済み

回答済み
Why doesn't a simple progream work?
My guess: Change y=1-(1/(Ti/2)*(0.5))*atan((sin(2*(Ti/2)*(0.5)))/(cos(2*(Ti/2)*(0.5))+exp(2.*acos(x)))); to y=...

12年以上 前 | 0

回答済み
How can i fix this code and simulate? ( Thank you so much!)
|slot_format| is obviously not defined when the line s_format = slot_format(sf_no); is reached. I created a function ...

12年以上 前 | 0

| 採用済み

回答済み
Textscan with very large .dat files, Matlab keeps crashing
* _"load in the data a block at a time"_ . _*Block*_ is that a part of a file? * converting from double to single saves on mem...

12年以上 前 | 1

回答済み
Can I import this CSV file into Matlab?
Looks like Excel. Try <http://www.mathworks.se/help/matlab/ref/xlsread.html xlsread>

12年以上 前 | 1

| 採用済み

回答済み
[MATLAB GUI] How can I add a string to the last line in multiline EditText?
To me it isn't clear what your problem is. Anyhow there is no alternative to set( h, 'String', string_values ) ... ...

12年以上 前 | 1

回答済み
How can I eliminate unwanted zeros from a matrix?
Hint: >> num = [ 1,1,1,1,0,0 ]; >> num( num == 0 ) = [] num = 1 1 1 1

12年以上 前 | 0

回答済み
the exp function does not work
>> exp(2) ans = 7.3891 I guess |exp| is "shadowed" on your system. Run >> which exp built-i...

12年以上 前 | 2

| 採用済み

回答済み
In a column how do I find the first cell to equal 0?
Run this %% ixc = 3; % third column sample_array = num2cell( magic(4)-3 ); is = cell2mat( sample_array( :,...

12年以上 前 | 1

| 採用済み

回答済み
GUIDE GUI Vs Programmatic GUI
_"Is there any advantage of creating a GUI programmatically over using GUIDE?"_ . Yes, I'm positive there are many. I hardly eve...

12年以上 前 | 1

回答済み
extracting rows based on string in first column (Should be fairly simple ... not for me apparently)
Problem: extracting first day of each month from one year of hourly data (two missing hours). One alternative is to compare day ...

12年以上 前 | 1

| 採用済み

回答済み
automatically running m scripts
Make a new script containing the lines a b c d e Put the new script in a folder, which is in the M...

12年以上 前 | 3

| 採用済み

回答済み
Why can't I use the object that the uicontrol creates within a class created GUI?
There are different types of objects (, which is a bit confusing) * handle graphic objects * instances of user classes Th...

12年以上 前 | 1

回答済み
load some data.mat placed in different folders in loop
Try something like this folder_list = {'d:\folder1','d:\folder2','d:\folder3'}; for jj = 1 : length( folder_li...

12年以上 前 | 0

| 採用済み

回答済み
Why does it take Matlab so long to delete handles and objects that are interconnected?
Loren Shure writes in her blog-post, <http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in-object-oriented-mat...

12年以上 前 | 0

回答済み
Upload data from file and store into variable
Try number_of_rows_of_my_xy = size( my_xy, 1 ); and doc size

12年以上 前 | 0

回答済み
How to import coordinates from a txt/csv file
Something like this should read your data. Try >> cac = cssm( ) cac = [3x3 double] >> cac{:} an...

12年以上 前 | 1

| 採用済み

回答済み
How can I write the arguments of an anonymous function when programming?
Doesn't the info in <http://www.mathworks.se/help/matlab/matlab_prog/anonymous-functions.html Anonymous Functions> cover your ca...

12年以上 前 | 0

| 採用済み

回答済み
How to reset a FOR loop if condition is met?
* _"most efficient way"_ . See <http://c2.com/cgi/wiki?PrematureOptimization Premature optimization> * Why not show us a solut...

12年以上 前 | 0

回答済み
MATLAB is running really slow.
Did you run bench ? How does it rank your system? Do you have memory enough for your test?

12年以上 前 | 0

回答済み
Getting "Subscripted assignment dimension mismatch" error message
Your file is not easy to read and parse with Matlab * The file is fixed width formatted. There are *no delimiter* between t...

12年以上 前 | 2

さらに読み込む