Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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 ...

plus de 6 ans il y a | 4

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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. ...

plus de 6 ans il y a | 0

| A accepté

Question


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...

plus de 6 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
how to read complex file data to matrix
Following Walter's advise %% chr = fileread('a.txt'); %% chr = strrep( chr, ' + ', '+' ); chr = strrep( chr, ' - ', '-' ); ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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; ...

plus de 6 ans il y a | 2

Réponse apportée
Why doesn't my matrix appear without missing columns
The problem exists in R2018b,Win10

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Create subfolders in the desired way
Try this %% output_path = 'd:\m\cssm'; % 'C:\Users\dparliari\Desktop\OutputEv' vars = {'Temperature', 'Relative_humidity'}; ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
reading files in sequence
See How can I process a sequence of files?

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 2

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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 = ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Charger plus