Community Profile

photo

Sigurd Askeland


Last seen: Today Active since 2018

Followers: 0   Following: 0

Statistics

All
  • Thankful Level 2
  • Solver
  • First Review
  • Knowledgeable Level 1
  • First Answer
  • Thankful Level 1

View badges

Feeds

View by

Solved


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

2 years ago

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

2 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 years ago

Answered
paste is disabled in the app designer
I have a work-around: In my case (R2020b) copying works, but not paste. Also, moving by dragging works. I copy from the code ...

2 years ago | 0

Answered
Extracting cartesian coordinates from a binarized image of a curved line
I don't have the Image Processing Toolbox, so I can't recreate your scenario exactly. However, if you have a 2D array of boolean...

6 years ago | 0

Answered
pde matlab code for wave equation
It seems you are plotting |data| in stead of |u|. When you set |data = u| before the for loop, any subsequent changes to |u| are...

6 years ago | 0

Answered
MATLAB: How to loop until the user types a specific word?
This code should do the trick: response = ''; counter = 1; %While loop runs until the string comparison finds %tha...

6 years ago | 2

| accepted

Answered
Different Colors in plotting?
The color can be set to a RGB value using the syntax |plot(x,y,'color', [r, g, b])|, where |r|, |g| and |b| are between 0 and 1....

6 years ago | 0

Question


Extracting data fom nested object arrays
I have object arrays where the objects have properties that them-self are object arrays. What is the best way to extract dat...

6 years ago | 1 answer | 0

1

answer

Question


How to initialize an object array as a class property?
Here are two code snippets illustrating my problem: classdef SomeClass properties foo; bar; ...

6 years ago | 1 answer | 1

1

answer