답변 있음
Initializing a struct with n-d fields.
An alternative approach just using builtin functions C = cell(numel(field),1,2,3,4); % pre-allocate cell-array to required ...

10년 초과 전 | 1

질문


Where did my Service Requests go?
The look and feel of the service request history in my TMW account appears to have had a makeover. While this looks like a wel...

10년 초과 전 | 답변 수: 1 | 1

1

답변

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

거의 11년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

거의 11년 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

거의 11년 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

거의 11년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

거의 11년 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

거의 11년 전

질문


Whats the difference between a table (new in R2013b) and a dataset (stats toolbox)?
As an enthusiast for the dataset class, I notice with interest a new class table in the latest MATLAB release (in the promo vide...

거의 11년 전 | 답변 수: 1 | 2

1

답변

답변 있음
Publish pdf from compiled executable via MCR
the short answer to your question would be NO, see <http://www.mathworks.co.uk/help/compiler/unsupported-functions.html> Pro...

거의 11년 전 | 0

| 수락됨

제출됨


encellstr
ENCELLSTR Create cell array of strings from char array or in ans with command-form use.

대략 11년 전 | 다운로드 수: 0 |

Thumbnail

답변 있음
RESTOREDEFAULTPATH doesn't restore default path (rather restores user's path)
Further to my comment (see above), the old behaviour can be had by restoredefaultpath; matlabpath(strrep(matlabpath, use...

11년 초과 전 | 2

| 수락됨

답변 있음
replace first match with a value,second match with a different value etc
Did you consider using regular expressions, e.g. regexprep('some text ee1 some more text ee1 ee1', 'ee1', {'FIRST' 'SECON...

11년 초과 전 | 0

질문


Is it good or bad thing to use handle() constructor on MATLAB Handle Graphics numeric handles?
Using |handle()| on a numeric graphics handle turns it into an object, e.g. ax = handle(gca); % ax is a scalar object o...

11년 초과 전 | 답변 수: 2 | 3

2

답변

답변 있음
how to use fprintf in string command
I guess you appreciate |fprintf(1,f,x)| can be used as a replacement for |disp(x)| but the format string |fmt| e.g. |'%s\n'| or ...

대략 12년 전 | 0

답변 있음
How to convert .xls file (Microsoft excel) to pdf using matlab
You could publish to PDF direct from MATLAB. Also, if you have the possibility to Print to PDF on your system and printing from ...

대략 12년 전 | 0

질문


How do I programmatically invoke "Find Files Tool" [Ctrl-Shift-F] GUI?
I usually invoke this window with the short-cut Ctrl-Shift-F, although it is also found in the main MATLAB command window Edit m...

대략 12년 전 | 답변 수: 0 | 1

0

답변

질문


Does your MATLAB FileExchange work OK?
From this UK office running R2011a, we can't see any files at all in the File Exchange from inside MATLAB. How is for your? Is t...

12년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Do you think this behaviour of built-in functions error() and warning() is odd
I find that |warning('message', a1, a2,...)| treats args a1 etc differently to |warning('message_id', 'message', a1, a2, ..., an...

12년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
equality of two matrics having NaN elements
Consider the following >> A=[1 2 3; 4 5 NaN] , B=[1 2 3; NaN 5 NaN ] A = 1 2 3 4 5 NaN B...

12년 초과 전 | 0

질문


What are the shortcuts for switching between non-adjacent open files in the MATLAB editor
Running in MS Windows I sort of expect Ctrl-Tab to switch active tabs/files in the editor. This happens in other Windows applica...

대략 13년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Running MATLAB Programs on a webpage
It is easiest to share your analysis results from MATLAB via a web-page by using the Publish feature with the output sent to or ...

대략 13년 전 | 1