All

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

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

mer än 2 år ago | 2 answers | 0

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

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

ungefär 3 år 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 ...

nästan 5 år ago | 0 answers | 0

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);

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);

ungefär 5 år 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() ...

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

mer än 5 år 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...

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

mer än 5 år ago | 0

Answered

removing tickmarks on image in MatLab2014a

Is that doing the Job for you? set(gca,'TickLength', [0 0])

removing tickmarks on image in MatLab2014a

Is that doing the Job for you? set(gca,'TickLength', [0 0])

mer än 5 år 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...

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

mer än 5 år ago | 0

| accepted

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

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

mer än 5 år ago | 0

| accepted

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

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

mer än 5 år ago | 9

| accepted

Answered

Re-arranging columns into rows

Isn't that simply done using the _reshape_ function? B = reshape(A, 1, N*N); Regards, Ralf

Re-arranging columns into rows

Isn't that simply done using the _reshape_ function? B = reshape(A, 1, N*N); Regards, Ralf

mer än 5 år 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.

mer än 5 år 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...

nästan 6 år ago | 1 answer | 2

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

ungefär 6 år ago | 1 answer | 0

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

mer än 6 år ago | 1 answer | 0

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

mer än 6 år ago | 1 answer | 0

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

mer än 8 år 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:...

ungefär 9 år ago