Community Profile

photo

per isakson


Last seen: Today

KTH

2.186 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
Why is there a syntax error for my code?
I don't think the problem is with your code, but rather with the users input. input( 'Please input ... ' ) expects an expression...

ongeveer 6 uur ago | 0

Answered
How to vectorize string/char array concatenation with 'newline' characters for fprintf?
This statement should do it xmlOutString = strjoin( xmlData, '\n' );

1 dag ago | 1

| accepted

Answered
read ASCII data with varying lengths of space as delimiters
subset.txt is a fixed-width text file. No doubt about that. Since R2018b (R2017a?) it is straight forward to read fixed-width t...

1 dag ago | 0

Answered
How to avoid Matlab inbuilt functions when executing F11 command to understand the code step by step?
"Is there any way to avoid the matlab inbuilt functions?" Alternately use F11 and F10. I guess it's possible to write a condit...

2 dagen ago | 0

Answered
Finding odd and even values without functions
Try this >> a=1:12 a = 1 2 3 4 5 6 7 8 9 10 11 12 >> (-1).^[a]==1 ans = 1×...

2 dagen ago | 1

Answered
textread() for Importing Values into Multi-Column Matrices
"is there were a way to specify that the output of the textread" See textscan, 'CollectOutput', true "Is this possible with t...

3 dagen ago | 0

Answered
Write/read binary files
This script %% ffs = 'test.bin'; X = 1+2i; %% write codes fid = fopen(ffs,'w','ieee-be'); tmpdatR = real((X)); tmpdatI ...

4 dagen ago | 0

Answered
How to know which toolboxes i am implementing
See matlab.codetools.requiredFilesAndProducts and How to list all function dependencies in v2016

6 dagen ago | 0

Answered
How to plot a 3 dimensional array
See 2-D and 3-D Plots

6 dagen ago | 0

Answered
why does matlab tell me that the "chop" command doesn't exist?
Make sure that you have the Control System Toolbox. chop() is a function in that toolbox. >> product_info = ver('control') pro...

7 dagen ago | 1

| accepted

Answered
How can I sum the elements in a vector row without using the sum function or any form of loops?
This is one way >> vec = (1:12); >> vec*ones(12,1) % replace '12' by length(vec) ans = 78 and check if that's the corre...

10 dagen ago | 2

Answered
How to extract specific rows & columns from a text file
See Read formatted data from text file or string and try fileID = fopen(filename); net_names = textscan( fileID, '%s%*f%*f%f...

10 dagen ago | 1

| accepted

Answered
Same Rows between two matrix
See setdiff, Set difference of two arrays and try >> setdiff( A, B, 'rows' ) ans = 0×2 empty double matrix >> setdiff( ...

11 dagen ago | 0

Answered
Getting a j x k Matrix from j and k-dimensional Vectors Without a For Loop?
See Matrix multiplication >> J*K' ans = 4 5 8 10 12 15

12 dagen ago | 0

| accepted

Answered
set class property only once
Here is an minimal working example of the design, which I think OP tried to implement. That is, use the fact that "MATLAB® evalu...

14 dagen ago | 0

Answered
Save a non scalar struct
The variable ss isn't saved between the calls of fun(). For the struct saved, only ss(4).bv is defined. That's the way Matlab w...

ongeveer een maand ago | 0

Answered
Subscripted assignment dimension mismatch
See for loop to repeat specified number of times and note especially, "[...]Avoid assigning a value to the index variable within...

ongeveer een maand ago | 0

| accepted

Answered
column to multiple row conversion
Try col = rand(366,1); % sample data mat = col2mat( col, 2020 ); and col = rand(365,1); % sample data mat = col2mat( col )...

ongeveer een maand ago | 0

| accepted

Answered
How to Read and plot CSV file and delete infinity values from CSV file
Matlab provide many ways to read your csv-files. Here are two variants based on textscan, Read formatted data from text file or...

ongeveer een maand ago | 0

| accepted

Answered
size of matrices in a struct
"add all the sizes of matrices" , but your code adds the heights (i.e. the number of rows). What exactly do you mean by "all si...

ongeveer een maand ago | 1

| accepted

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

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

ongeveer 2 maanden 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...

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

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

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

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

3 maanden 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, ' - ', '-' ); ...

3 maanden ago | 0

| accepted

Load more