Community Profile

photo

per isakson


Last seen: Today

KTH

2.332 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
Store different data types efficiently
Three solutions are mentioned in the comments of you question. I assume you have a collection of m-functions, which operate on t...

circa 17 ore ago | 0

Answered
Variable in a for loop
"[...] they both display the modified x value" No they don't. This script %% for jj = 1:100 x = 1:12; y = x; ...

2 giorni ago | 0

Answered
how I will check the Conditional statement task?
With a different interpretation of the word "check" Modify the script %% t = 1; if mod(t,2)==1 disp('[task 1]') else ...

2 giorni ago | 0

Answered
How do I add a new element to an object array using pass by reference?
The documentation on Initialize Arrays of Handle Objects says "[...] Creates unique handles for each element in the array." I a...

3 giorni ago | 0

Answered
How to read .enf file
A little exercise with regular expression >> cssm( 'BFND_W6.txt' ) ans = struct with fields: FP1: 'Invalid' FP...

4 giorni ago | 0

Answered
Problem in creating a new local Git repository
Caveat: I stick to R2018b. This new project tool confuses me. There was an amusing thread here at Answers that exposed the inte...

5 giorni ago | 0

Answered
Read file with non-uniform lines?
>> S = cssm( 'd:\m\cssm\cssm.txt' ) S = 1×2 struct array with fields: header colhead Code data >> S(1)...

6 giorni ago | 0

Answered
Remove first characters from a string
... or if I understand "I want to remove the first 5 characters from each of these strings" literally %% u{1,1} = "ART1/TEACH...

6 giorni ago | 0

Answered
Seeking a little clarification on using sprintf with %d and formatSpec etc. to load similar *.MAT filenames that only differ in name by number.
Less brute sad = dir( fullfile( root_folder, '**', 'Band*Hz.mat') ); However, this assumes that you want to read all files und...

7 giorni ago | 1

| accepted

Answered
How do I make my vector length even?
The statement x = linspace(5,(-2*pi),(2*pi)); looks strange to me. On R2018b it creates a row vector of length 6, which supris...

7 giorni ago | 0

| accepted

Answered
Functions within a matrix
There are several ways, one of which is cat, Concatenate arrays

7 giorni ago | 0

Answered
My for loop is running only once
"My for loop is running only once" Your loop is running 361 times, but the results of each run overwrites the results of the pr...

7 giorni ago | 1

Answered
Index exceeds the number of array elements (1). Error coming in the code below
I cannot reproduce (on R2018b) the error that you report: Index exceeds the number of array elements (1). Error in CircleFitBy...

9 giorni ago | 0

| accepted

Answered
Index exceeds the number of array elements (2). Error (line 41)
dy_v is a row vector with length two dy_v= [0.33 -1.5]; The end value, n+1, of this loop is 4 %% Create Vector B for i=1:...

11 giorni ago | 0

Answered
Create index between values
Study this %% a = [0,1,0,2,0,2,1]; ixb = find( a==1, 1,'first'); % begin ixe = find( a==2, 1,'last'); % end %% b = zeros(...

12 giorni ago | 0

| accepted

Question


Help me read the doc on matlab.fonts Settings
Background I use the font, Inconsolata, in the Command Window and the Editor. It's very readable (imo), however there is a pro...

13 giorni ago | 1 answer | 0

1

answer

Answered
Array instead of one value in loop form
I assume that you want to iterate over the loop for the 27 values, i=[1,2,3,...,27]. That is exactly what for i=1:27 does. (The...

17 giorni ago | 0

| accepted

Answered
How to effectively check a list of variables for existence and then check "isvector"
Maybe it's good enough to run >> whos data* Name Size Bytes Class Attributes data1 0x0 ...

17 giorni ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1)?
I replaced the inner for-loop by for n=1:(T/steg) f01 = idenmat - steg*theta*A; f22 = quart...

21 giorni ago | 1

| accepted

Submitted


m2uml
m2uml generates UML class diagrams from m-code

28 giorni ago | 40 downloads |

Thumbnail

Answered
Need help on matlab table
Assumption: You have a text file that contains exactly the five lines of text formatted as code in your question. Run the func...

28 giorni ago | 0

Question


How to Contact File Exchange Admin?
I try to update a FEX submission, but The previous version is a zip-file and now I try to replace that with a mltbx-file.

circa un mese ago | 1 answer | 1

1

answer

Answered
matlab fprintf error? please help
Most likely, fid = fopen(...), failed and return a negative value to fid. Replace fid = fopen(sprintf('%s/Timeseries.ROIs/%...

circa un mese ago | 0

Answered
sum separate continuous values
%% d = diff( c ); ixb = find( d == +1 ) + 1; ixe = find( d == -1 ); %% is_group = ixe >= ixb + 1; [ ixb(is_group), ixe(i...

circa un mese ago | 0

| accepted

Answered
How to use "dir"?
Renam the folders 'Inst1', to, 'Inst01', etc. or see natural order.

circa un mese ago | 0

Answered
The loop does not take all values
I cannot reproduce the issue that you report. You didn't show us the error message! There is an error message? First, I tidied ...

circa un mese ago | 1

| accepted

Question


Why does web('name.html','-new') open the html-file in the Help browser?
Experiments with R2018b show that web('name.html','-new') honors the Matlab documentation and displays 'name.html' in the Matla...

circa un mese ago | 0 answers | 0

0

answers

Answered
How to read strings from a txt file?
The text file, model.txt, contains the five lines given in your question. The script fid = fopen( 'model.txt' ); cac...

circa un mese ago | 0

| accepted

Answered
find the minimum value of y for positive vales of x
Try this %% x = (-100:100); y = x.^3+60*(x.^2)-50; %% xmin = min(y(x>0)) which returns xmin = 11 >>

circa 2 mesi ago | 0

| accepted

Answered
Looping through a random matrix to see if any element is >0.5
Try %% for random_number_matrix = rand(4,8) display (random_number_matrix) end and read the documentation on for

circa 2 mesi ago | 0

Load more