Community Profile

photo

Ralf


Last seen: 11 days ago
19 total contributions since 2012

Contact

Ralf's Badges

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

View details...

Contributions in
View by

Question


How to make a forced exit from Matlab with returning a code?
Hi all, I try to exit from Matlab in a script and want to return a code to the command line. I know that there is the command ...

2 years ago | 2 answers | 0

2

answers

Answered
Why bus creater (non-virtual) accepts elements according to order defined in Simulink.Bus object
I've got the same question. In addition, is there a way to assemble a non-virtual bus without beeing forced to respect the o...

2 years ago | 0

Question


How to calculate the one's complement of the binary representation of a single precision variable in Simulink (or embedded Matlab)?
Hello everybody, I need to to convert a Simulink signal with data type 'single' to its one's complement. I tried to use a data ...

4 years ago | 0 answers | 0

0

answers

Answered
How to assign a name to a Table given set of names?
Hi Edson, would that work for you? assignin('base', ['A_' Subjects{1}], A);

4 years ago | 0

| accepted

Answered
how can i call a model from simulink to matlab?
I don't understand what _bit error rate_ means. But to simulate a Simulink model from Matlab, you usually use the sim() ...

4 years ago | 0

| accepted

Answered
Extract data from MATLAB plots
Hi ksnf3000, I doubt that this is correct. This would calculate the mean value of ydata between the 100th and 400th data poin...

4 years ago | 0

Answered
removing tickmarks on image in MatLab2014a
Is that doing the Job for you? set(gca,'TickLength', [0 0])

4 years ago | 1

| accepted

Answered
Want to return multiple variables from one function to another. How to do so?
I am not really sure about what you want to achieve. At least this code is doing something: function [a,b]=fn2() a...

4 years ago | 0

Answered
Run a m-file (which simulates a Markov chain) multiple times and store the results
Can't you simply use a for Loop like this one? for i=1:1000 result{i} = markov(input{i}); end % Then you ca...

4 years ago | 0

| accepted

Answered
Doubt with the simulink units.
It shows the time in seconds.

4 years ago | 0

Answered
How do you insert the date and time as the file name when using xlswrite?
Hi Lucas, that's because datestr(now) creates characters like colon (:) which are not allowed for file names. You should defi...

4 years ago | 7

| accepted

Answered
Re-arranging columns into rows
Isn't that simply done using the _reshape_ function? B = reshape(A, 1, N*N); Regards, Ralf

5 years ago | 0

| accepted

Solved


Create a figure and plot data
Given two data vectors (x,y), open a new figure and plot the data. Return the figure handle.

5 years ago

Question


How to copy field contents of one struct to another?
Hi all, I have got two structs, A and B. B has a subset of the fields of A: A.f1 = 1; A.f2 = 2; A.f3 = 3; B.f...

5 years ago | 1 answer | 2

1

answer

Question


How to find out if the Simulink Verification and Validation toolbox is installed?
Hi all, is there a simple way of finding out programmatically if the "Simulink Verification and Validation" toolbox is instal...

5 years ago | 1 answer | 0

1

answer

Question


Difference of cell arrays containing strings
Hello everybody, I try to calculate the difference of two cell arrays containing strings. I want to identify the unique strin...

5 years ago | 1 answer | 0

1

answer

Question


Are there gauges for Matlab?
Inspired by the gauges blockset for Simulink, I am looking for gauges to use in Matlab programs. Are there any gauges like the ...

5 years ago | 1 answer | 0

1

answer

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

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

8 years ago