Beantwortet
[DEPRECATED] What frustrates you about MATLAB?
*|[Find Files]|* &nbsp does not honor that multi-line comments are also comments. Single line comments are highlighted green in ...

mehr als 11 Jahre vor | 0

Beantwortet
File Exchange - Quickly see comments?
Yes, I find it important to monitor and respond to comments on my FEX submissions (and Answer answers). However, I don't want th...

mehr als 11 Jahre vor | 2

Beantwortet
Call a script via a function?
Look at this >> cssm ans = Greeting from the script where cssm is the function function out = c...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Indexing custom array class objects
Try this newModulus = {35,20}; [mat([1,3]).Modulus] = deal( newModulus{:} ); % this does work

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
creating strings with variables
This code is much more complicated than needed. for i=1:numel(mat_frac) evalit = sprintf('file{%d}=nuPots_run1_120_1cm_...

mehr als 11 Jahre vor | 0

Beantwortet
Multiple plots using same axis in Matlab
Yes, provide the axes-handle in the call to *|scatter3|* ... instead of setting the current axes. Doc says: scatter3(ax,_...

mehr als 11 Jahre vor | 1

Beantwortet
sum of products to a series and a function
Is *|matlabFunction|* what you are looking for? &nbsp See <http://se.mathworks.com/help/symbolic/matlabfunction.html?searchHig...

mehr als 11 Jahre vor | 1

Beantwortet
How to delete an empty matrix ?
Try clear a

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How do I change the size of prompt?
*_"Resize='on'"_* &nbsp enables the user to resize the dialog figure. *_"change the size of prompt."_* &nbsp See the screen ...

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
How to define a variable?
_*"[...]changing variable p whichever user inserts"*_ &nbsp I assume _"*z*"_ is a highlighted input variable. However, I cannot ...

mehr als 11 Jahre vor | 1

Beantwortet
I am having some issues debugging my matlab program for population growth
I played a bit with your equation. * converted your script to a function, *|cssm|* [attached] * pre-allocated a couple of v...

mehr als 11 Jahre vor | 1

Beantwortet
Import text file with blank lines. Matlab not replacing them with NaN
Remains (at least) two possibilities * a loop over *|fgetl|* * read the file as one string, replace empty lines by *|'nan na...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Help with nxn matrices
The only problem I find is the two ending *|end|*. After adding *|end|* to the end of each function. (You don't say what kind o...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Search for elements in a string
A code based on *|regexp|* %% str = 'add\?/adfd'; chr = char(32:47); xpr = ['[',regexptranslate('escap...

mehr als 11 Jahre vor | 0

Beantwortet
how can I convert comma with decimal points for a lot of textfiles?
See <http://se.mathworks.com/matlabcentral/answers/57276-import-data-file-with-comma-decimal-point#answer_69283 Import data file...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
What is the benefit of using a function handle?
See <http://se.mathworks.com/help/matlab/matlab_prog/overview-1.html What Is a Function Handle?> IMO: the main benefit is th...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
How do you declare structures within classes?
_"method describe above doesn't work"_ &nbsp I don't understand how you want it to work. That's might be because I don't know th...

mehr als 11 Jahre vor | 0

Beantwortet
deleting a certain variable in the base workspace via a function
Try evalin( 'base', 'clear(''x'')' ) and simpler evalin( 'base', 'clear x' ) *But take the advice of Image A...

mehr als 11 Jahre vor | 6

| akzeptiert

Beantwortet
Plot time vs displacement of mass/spring/damper system step response, underdamped
Search the File Exchange for <http://se.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=mass+spring+damper ma...

mehr als 11 Jahre vor | 1

Beantwortet
How to get the file name as the title of the figure window?
Try to replace sprintf('file name is %d',baseFileName) by sprintf('file name is %s',baseFileName) Since th...

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
Import timestamps from textfile with more than 10k entries (R2014b)
Yes, Star Strider is correct. The string "E16" appears 24 times in the first column. What's that supposed to indicate? And I fou...

mehr als 11 Jahre vor | 1

Beantwortet
Randomly makes matrix rows as one vector
Hint M = magic( 7 ); R = M( randperm(7), : );

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
Can a child object reference to a parent object?
Here is one way to let parent and child share a variable. %% pc = ParentClass; cc = ChildClass; cc.A.a = ...

mehr als 11 Jahre vor | 2

Beantwortet
About isinteger command(confusion)
Matlab represents integers in differnt ways: * int8, int16, etc. see Christians answer * with a special use of double, which...

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
How can I design a matlab GUI to display an ECG signal
Search the File Exchange for * <http://se.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=ecg+signal ecg ...

mehr als 11 Jahre vor | 2

Beantwortet
How to read alphanumeric(alphabetic+numeric) columns to MatLab?
Try *|textscan|* %% fid = fopen( 'cssm.txt' ); cac = textscan( fid, '%f%f%s' ... , ...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
Read a text file with varying number of colums
Try %% fid = fopen( 'cssm.txt' ); cac = textscan( fid, '%s%s%s%s%s%s%s%s%s', 'CollectOutput' ... ...

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
Insert whole containing of text file to Matlab
Example of setting and resetting the string of an editbox %% figure str = fileread('cssm_1.help'); ebh = u...

mehr als 11 Jahre vor | 1

Beantwortet
How to access subfunction headers with "help" command?
_"Something like help myFunc.mySubFunc?"_ &nbsp Yes, it's possible with R2013a (and earlier). Try >> help cssm>sub_cs...

mehr als 11 Jahre vor | 3

Beantwortet
Saving many strings in cell to .txt readable for Unity, error with fprintf
Replace colours{ch, i}={'black'}; by colours{ch, i}='black'; etc. It is either colours{ch, i}='b...

mehr als 11 Jahre vor | 2

| akzeptiert

Mehr laden