Community Profile

photo

per isakson


Last seen: 14 Tage ago

KTH

2.166 total contributions since 2010

Contact

per isakson's Badges

  • Revival Level 3
  • Ace
  • 36 Month Streak
  • Leader
  • Speed Demon
  • Promoter
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Commenter

View all

Contributions in
View by

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

14 Tage ago | 0

| accepted

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

14 Tage ago | 1

| accepted

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

16 Tage ago | 0

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

16 Tage ago | 0

| accepted

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

21 Tage ago | 1

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

25 Tage ago | 0

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

26 Tage ago | 0

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

27 Tage ago | 0

| accepted

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

etwa ein Monat ago | 1 answer | 2

1

answer

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

etwa ein Monat ago | 0

| accepted

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

etwa ein Monat ago | 0

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

etwa ein Monat ago | 1

| accepted

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

etwa ein Monat ago | 0

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

etwa ein Monat ago | 0

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

etwa ein Monat ago | 2

| accepted

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

etwa ein Monat ago | 0

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

etwa ein Monat ago | 0

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

etwa 2 Monate ago | 0

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

etwa 2 Monate ago | 0

| accepted

Answered
reading files in sequence
See How can I process a sequence of files?

etwa 2 Monate ago | 0

| accepted

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

etwa 2 Monate ago | 0

| accepted

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

etwa 2 Monate ago | 2

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

etwa 2 Monate ago | 0

| accepted

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

etwa 2 Monate ago | 0

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

etwa 2 Monate ago | 1

| accepted

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

etwa 2 Monate ago | 1

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

etwa 2 Monate ago | 0

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

etwa 2 Monate ago | 0

| accepted

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

2 Monate ago | 0

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

2 Monate ago | 0

Load more