已回答
how to replace all elements with zeros after "ONE" (number) in every column of matrix???
Try this >> m = randi([0,1],[6,8]) m = 0 0 0 1 0 0 0 0 0 1 1 1 1 1...

5 years 前 | 0

| 已接受

已回答
Toolstrip behavior and Editor tabs
I don't know what the documentation says, but I guess it doesn't describe in any detail how the toolstrip shall behave. Yes, wi...

5 years 前 | 1

| 已接受

已回答
When are search terms highlighted in the online documentation?
Tech support answers: "[...] the development team [...] confirm that this is not currently possible. [...] The developers will c...

5 years 前 | 0

已回答
How to optimize write operation to disk for faster execution?
Replace for i=1:length(data_hex_out) fprintf(h_file_out,'%s',data_hex_out(i,:)); end by fprintf( h_file_out, '%s', perm...

5 years 前 | 0

| 已接受

已回答
What can I do with a web browser handle?
Undocumented Matlab and this book might be the best sources of information on the use of Java in Matlab(, besides the Matlab doc...

5 years 前 | 1

已回答
Can I save multiple seperate functions to one .m file?
IMO: The best solutions is a class with static methods. >> lib.div( 8, 2 ) ans = 4 >> lib.mult( 8, 2 ) ans = 16 ...

5 years 前 | 4

已回答
Problems with averages and storing values
I like to present a different approach, which includes divide the projects into steps use Code Sections use functions use de...

5 years 前 | 0

已回答
Enumeration of classes in inheritance
I might neither fully have understood your code nor the title of the question. Nevertheless, I think this is a better approach. ...

5 years 前 | 0

| 已接受

提问


When are search terms highlighted in the online documentation?
Background I use R2018b. I've created an online documentation for a toolbox. HTML help files. I written m-files and used pub...

5 years 前 | 1 个回答 | 2

1

个回答

已回答
how to read complex file data to matrix
Following Walter's advise %% chr = fileread('a.txt'); %% chr = strrep( chr, ' + ', '+' ); chr = strrep( chr, ' - ', '-' ); ...

5 years 前 | 0

| 已接受

已回答
How do I find all entries in an object array with a certain property
Another approach >> cc = ClassC( 12 ); >> [cc.a] ans = 17 17 17 17 17 17 17 17 17 17 17 ...

5 years 前 | 0

已回答
How can I initialize nested handle class with independent values
"My question is, if i want to use handle class 'a'(2nd way), can i have a faster way to initialize 'a' and have independent b.a ...

5 years 前 | 1

| 已接受

已回答
Error:" Output argument "y" (and maybe others) not assigned during call to"
I found this on if-elseif-else in the documentation of R14. Nonscalar Expressions If the evaluated expression yields a nonsc...

5 years 前 | 0

已回答
How to display two things on one line?
See Append Text to Strings before you try my code. >> "abc"+"def" ans = "abcdef" >> and your example >> x = 17; ...

5 years 前 | 2

已回答
Why doesn't my matrix appear without missing columns
The problem exists in R2018b,Win10

6 years 前 | 2

| 已接受

已回答
Create subfolders in the desired way
Try this %% output_path = 'd:\m\cssm'; % 'C:\Users\dparliari\Desktop\OutputEv' vars = {'Temperature', 'Relative_humidity'}; ...

6 years 前 | 0

已回答
How to read rows of data in .csv file and turn them into arrays?
See Import Block of Numeric Data from Text File and search this forum for text read tag:block You write "very very long time" i...

6 years 前 | 0

已回答
Is there a way to make string without quotes?
The title and the body-text of your question don't go together(?) "shift + enter" replaces all occurences of a name in a "scope...

6 years 前 | 0

已回答
How to read a specific number in a text file containing a mixture of strings and numbers?
Try this %% chr = webread('http://tgftp.nws.noaa.gov/data/observations/metar/decoded/EDDH.TXT'); %% cac = regexp( chr, '^Te...

6 years 前 | 0

| 已接受

已回答
reading files in sequence
See How can I process a sequence of files?

6 years 前 | 0

| 已接受

已回答
How can I speedup this code ?
"I don't have much time [...]. What do you recommend that I do?" Set Specific Goals. Your goal must be clear and well defined. ...

6 years 前 | 0

| 已接受

已回答
Any tips to updating 'for loop' index!
The documentation on for says: Avoid assigning a value to the index variable within the loop statements. The for statement ove...

6 years 前 | 2

已回答
Using assignin with structure elements
"What am I missing?" assignin() cannot assign to a field of a structure. It's possible to do it with evalin(). Compare the no...

6 years 前 | 1

| 已接受

已回答
Contour plots for random variables
The documentation on fcontour, Plot contours says: Specify a function of the form z = f(x,y). The function must accept two ma...

6 years 前 | 0

已回答
Plotting two columns from matrix.
See Indexing with Logical Values half way down the page A starter %% M = dlmread('matrix.txt'); %% is_show = abs(M(:,8))<5e...

6 years 前 | 1

| 已接受

已回答
Matlab script is very very slow! Help me please!
Why not just let it run over a weekend? See Techniques to Improve Performance and Profile to Improve Performance I've download...

6 years 前 | 1

已回答
Editing sections of an array that are pointed to by two vectors: one with starting indexes, another with end indexes
Try >> isSelected = logical([cumsum(indStart),0]-[0,cumsum(indEnd)]); >> isSelected(end) = []; >> data(isSelected) ans = ...

6 years 前 | 0

已回答
num2cell out of memory
Why do you want to convert the numerical matrix to a cell array? It requires an enormous amount of memory for overhead. >> clea...

6 years 前 | 0

已回答
Directly open custom documentation
It hasn't bothered me, but doc toolbox_name If the name is unique enough it produces a short list of search results. In my c...

6 years 前 | 1

| 已接受

已回答
Adding available capacity at the hourly time increment
This answer is a variation of my answer to your recent question, "Storing and passing all iterations to an array outside the nes...

6 years 前 | 0

加载更多