Community Profile

photo

Jan Siegmund


Last seen: mehr als 2 Jahre vor Aktiv seit 2020

Followers: 0   Following: 0

Statistiken

  • Thankful Level 2
  • 6 Month Streak
  • Knowledgeable Level 1
  • Thankful Level 1
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
Suppress Command Window Output using SYSTEM command
The accepted answer unfortunately is OS specific. A MATLAB only solution would be: [returncode, outputMessages] = system('xfoil...

mehr als 2 Jahre vor | 2

Beantwortet
How do I use a class property validation function with a dynamic argument?
The problem is, that MATLAB classes only support constant arguments on property validation. However function arguments can be v...

mehr als 3 Jahre vor | 0

| akzeptiert

Frage


How do I use a class property validation function with a dynamic argument?
In Matlab OOP, I wanna use a function like mustBeEqualSize(a,b) from the Examples on function property validation to validate a ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Efficient number occurence count
I want to efficiently count the number of occurences of numbers between 1-numel(num) in a Matrix. I came up with two options for...

mehr als 3 Jahre vor | 3 Antworten | 1

3

Antworten

Beantwortet
How to put cell array in sprintf?
If using multiple different cells: %% Edited % var = {'a','b','c','d','e'}; % num = {1,2,3,4,5}; % s = strjoin(cellfun(@(v...

mehr als 3 Jahre vor | 0

Beantwortet
How to indicate that GUI is busy running?
Users that looked for a waitbar style solution should have a look at https://de.mathworks.com/help/matlab/ref/uiprogressdlg.html...

fast 4 Jahre vor | 0

Beantwortet
How to support default parameter in MATLAB FUNCTION ?
The Answers are not up to date. Modern MATLAB supports the arguments Block: function out = foo(in) arguments in(1...

fast 4 Jahre vor | 18

Beantwortet
Multiple numerics as one map key / Merge Objects based on parameters
The only keytype which can hold two doubles is the character key type. So one may use char as key type and then simply function...

fast 4 Jahre vor | 0

| akzeptiert

Frage


Multiple numerics as one map key / Merge Objects based on parameters
I want to use two numerics as a single key for a map to merge similar objects of a class. How can I do that? My class looks lik...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How do I convert a numerical vector into a comma-delimited string?
Here is another oneliner: strjoin(cellstr(num2str(n')),',') Testing all four types with a script n = randi(100,[1 100]); tic...

fast 4 Jahre vor | 4

Beantwortet
How do I limit the values in an array?
There is also a matlab function doing this: A = min(A,1); It takes A if A is the minimum of the two and 1 if 1 is the minimum ...

fast 4 Jahre vor | 2

Beantwortet
How to create a checkerboard matrix without inbuilt function.
For an even sized checkerboard: rows = 6; cols = 4; normal = repmat(eye(2,'logical'),[rows/2 cols/2]); % or inverted = repm...

fast 4 Jahre vor | 0

Beantwortet
How to write an efficient overloaded subsasgn?
I may have a solution but do not know if this covers all cases: classdef Subsasgntest properties val e...

fast 4 Jahre vor | 0

| akzeptiert

Frage


How to write an efficient overloaded subsasgn?
I want to write a class which defines subsasgn. The class holds a numeric value val and the subsasgn should target val only. I ...

fast 4 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
combine columns with different lengths to create a matrix
If the input data is a cell array of column vectors, you might consider this: a = {ones(5,1) ones(8,1)}; %test data len = ma...

fast 4 Jahre vor | 1

Beantwortet
horzcat different size rows; zero padding
If the input data is a cell array of column vectors, you might consider this: a = {ones(5,1) ones(8,1)}; %test data len = max(...

fast 4 Jahre vor | 0

Beantwortet
Regex: How do I match an empty string?
Use regexp(a,'^$','emptymatch')

fast 4 Jahre vor | 0

| akzeptiert

Frage


Regex: How do I match an empty string?
Consider the following string: a = ''; How can I match it using regexp?

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Override subsasgn of MATLABs double?
Consider the following statement: x = [1 2;3 4]; y = myclass([5 6]); x(1:2) = y MATLABs default behavior is: x(1:2) = ... r...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Does MATLAB call the double constructor on a=a+1?
I want to overload the double class and add some properties to it. And i also have to override the plus function. A similar cod...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
[Fixed Point Converter] 1000 bit fraction length at 2^x if x is loaded from .mat file?
A temporary fix is using bitsll as recommended here: For efficient HDL code generation, use the Fixed-Point Designer ...

etwa 4 Jahre vor | 0

| akzeptiert

Frage


[Fixed Point Converter] 1000 bit fraction length at 2^x if x is loaded from .mat file?
I got a problem with code like this in the fixed-point converter: dut_tb.m dut(8); dut.m function out = dut(in) S = cod...

etwa 4 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
[HDL Coder] Ridiculous RAM usage + How to activate parallel processing?
This memory usage is not sane and it is the result of not properly optimized MATLAB code for HDL conversion. I tried to run code...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Odd and even numbers
Fancy answer: m = [1 2 3;4 5 6]; isodd = bitget(m,1) however this is slower as rem

etwa 4 Jahre vor | 0

Frage


[HDL Coder] Bug: Fixed point converter does not descend into System Objects
Can I somehow tell the fixed point converter to explicitly convert a certain function? This would temporarily fix the following ...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


[HDL Coder] Ridiculous RAM usage + How to activate parallel processing?
On my project, the HDL Coder uses ridiculus amounts of RAM. On my 8GB Windows 10 Notebook, it chews through it until after 3min ...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
[Coder] Which types are supported for constant folding?
I did understand constant folding wrong: I thought one must help the coder as follows: a = coder.const(my_prod(3,2)); , becau...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Fixed point converter: Ignore code part.
Ignoring a code part in fixed point converter is currenty(R2019b) not supported. Comment out the section as a temporary fix.

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
[HDL Coder]: BUG?/ Function Location missing in Error Report -> find variable by name?
As long a the location of error lines is not shown correctly in MATLAB HDL Coder, assign the top function call as a var = cod...

etwa 4 Jahre vor | 0

| akzeptiert

Frage


[HDL Coder]: BUG?/ Function Location missing in Error Report -> find variable by name?
In HDL Coder, I want to locate, where errors are occuring. But the HTML Report just gives me the Error Location in the top comp...

etwa 4 Jahre vor | 3 Antworten | 0

3

Antworten

Mehr laden