Answered

how to find matching elements of two colums vectors

It depends what you want exactly. Let's say you have two vectors a and b: a=[1;2;3;4]; b=[0;2;3;5]; To find the indices wher...

how to find matching elements of two colums vectors

It depends what you want exactly. Let's say you have two vectors a and b: a=[1;2;3;4]; b=[0;2;3;5]; To find the indices wher...

8 giorni ago | 0

Answered

matlab 2014b windows 10

Follow this link and select the matlab version you want to download : https://mathworks.com/downloads/web_downloads/select_rele...

matlab 2014b windows 10

Follow this link and select the matlab version you want to download : https://mathworks.com/downloads/web_downloads/select_rele...

29 giorni ago | 0

Answered

How to caculate a value for a step - the previous step

It depends on what you mean by "I have a value x". It is actuallyquite easy to do for a straightforward example, but it depends...

How to caculate a value for a step - the previous step

It depends on what you mean by "I have a value x". It is actuallyquite easy to do for a straightforward example, but it depends...

circa 2 mesi ago | 0

Answered

Restrict user string inputs

The problem comes from your conditions: ~strcmp(y,'i') | ~strcmp(y,'m') This is never true, even if you enter 'i' or 'm'. Wh...

Restrict user string inputs

The problem comes from your conditions: ~strcmp(y,'i') | ~strcmp(y,'m') This is never true, even if you enter 'i' or 'm'. Wh...

circa 2 mesi ago | 0

Answered

How can I call a .m function with App Designer?

Yes it is possible, have a look at this tutorial and introduction video: https://mathworks.com/help/matlab/creating_guis/create...

How can I call a .m function with App Designer?

Yes it is possible, have a look at this tutorial and introduction video: https://mathworks.com/help/matlab/creating_guis/create...

2 mesi ago | 0

| accepted

Answered

facing problem in writing complex programme

Can you show the entire error message ? You have at least one error at line 5: part1=beta /lamda(0.5-delta+delta^2); sayi...

facing problem in writing complex programme

Can you show the entire error message ? You have at least one error at line 5: part1=beta /lamda(0.5-delta+delta^2); sayi...

3 mesi ago | 0

| accepted

Answered

how to use a graph from user input as input to the matlab program

In this case, I recommend you use lsim: https://mathworks.com/help/control/ref/lsim.html

how to use a graph from user input as input to the matlab program

In this case, I recommend you use lsim: https://mathworks.com/help/control/ref/lsim.html

3 mesi ago | 0

Solved

Make roundn function

Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

3 mesi ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

3 mesi ago

Solved

Matlab Basics - Rounding III

Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

3 mesi ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

3 mesi ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

3 mesi ago

Solved

MATLAB Basic: rounding III

Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

3 mesi ago

Solved

MATLAB Basic: rounding II

Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

3 mesi ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

3 mesi ago

Answered

How can I plot an internal value in a state space model?

Given that the voltage is not a directly controlled input, I do no know how to get this value during a simulation. Is u the vol...

How can I plot an internal value in a state space model?

Given that the voltage is not a directly controlled input, I do no know how to get this value during a simulation. Is u the vol...

3 mesi ago | 0

Answered

how to form matrix

From this documentation: https://mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html Try: m = [ m11 m12 ...

how to form matrix

From this documentation: https://mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html Try: m = [ m11 m12 ...

4 mesi ago | 0

Answered

Expressing an even number in powers of 2 and a multiple of an odd number.

I would do something like a = 80; r = 1; d = a/2; while mod(d,2)==0 r=r+1; d=d/2; end

Expressing an even number in powers of 2 and a multiple of an odd number.

I would do something like a = 80; r = 1; d = a/2; while mod(d,2)==0 r=r+1; d=d/2; end

4 mesi ago | 0

Answered

Simulink Serial Receive, Selection of communication port

This was a problem related to permission right, I had to acces to the device as an admin to be able to communicate with it.

Simulink Serial Receive, Selection of communication port

This was a problem related to permission right, I had to acces to the device as an admin to be able to communicate with it.

4 mesi ago | 0

| accepted

Answered

Nyquist plot from 0 to Inf (only frequencies > 0)

If you specify the frequency as W = {WMIN,WMAX} WMIN and WMAX are real frequencies satisfying 0<=WMIN<WMAX<=Inf. So by settin...

Nyquist plot from 0 to Inf (only frequencies > 0)

If you specify the frequency as W = {WMIN,WMAX} WMIN and WMAX are real frequencies satisfying 0<=WMIN<WMAX<=Inf. So by settin...

4 mesi ago | 0

Answered

How can the output be written in a new column (without overwriting the previous one)

You can use cell for that. You can try and adapt the following example: a=cell(3,1); for i=1:3 a{i}=ones(i,1); end a ...

How can the output be written in a new column (without overwriting the previous one)

You can use cell for that. You can try and adapt the following example: a=cell(3,1); for i=1:3 a{i}=ones(i,1); end a ...

4 mesi ago | 0

Answered

how to use two for loop in one matlab program

You should read this: https://mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html You cannot write v(z)(...

how to use two for loop in one matlab program

You should read this: https://mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html You cannot write v(z)(...

5 mesi ago | 0

Answered

How to solve: Error using "csvread". Too many output arguments

As the error says, you are requesting two many outputs arguments. The function 'csvread' only returns one output.

How to solve: Error using "csvread". Too many output arguments

As the error says, you are requesting two many outputs arguments. The function 'csvread' only returns one output.

5 mesi ago | 0

Question

Simulink Serial Receive, Selection of communication port

Hi, From the help of this component: https://mathworks.com/help/instrument/serialreceive.html?searchHighlight=serial%20recei...

5 mesi ago | 1 answer | 0

Answered

How to solve a 2D PDE with backward Euler?

At line 58, you are trying to access the 11th element of the Number matrix, but its dimensions are 10 x 10, so you get an error....

How to solve a 2D PDE with backward Euler?

At line 58, you are trying to access the 11th element of the Number matrix, but its dimensions are 10 x 10, so you get an error....

5 mesi ago | 0

| accepted

Answered

Appending data with different sizes

The easiest way would be the following something like this: a = [1 2 3]; b = [4 5 6 7]; n=size(b,2) a_bis=[a zeros(1,n)]; c...

Appending data with different sizes

The easiest way would be the following something like this: a = [1 2 3]; b = [4 5 6 7]; n=size(b,2) a_bis=[a zeros(1,n)]; c...

6 mesi ago | 0

Answered

help regarding controllability of input matrix

Is the matrix V completely free ? If you can actually add any input to your system, why don't you simply define C = eye(3) ...

help regarding controllability of input matrix

Is the matrix V completely free ? If you can actually add any input to your system, why don't you simply define C = eye(3) ...

6 mesi ago | 0

Answered

I need to view frequency spectrum with 50 kHz, 100 kHz and 150 kHz only of a time a signal (x) with 2000 kHz sampling frequency.How to do ?

Can you give more details about your problem ? Do these answers help you ? https://mathworks.com/matlabcentral/answers/36430-p...

I need to view frequency spectrum with 50 kHz, 100 kHz and 150 kHz only of a time a signal (x) with 2000 kHz sampling frequency.How to do ?

Can you give more details about your problem ? Do these answers help you ? https://mathworks.com/matlabcentral/answers/36430-p...

6 mesi ago | 0

Answered

where is the error ?

In the command line, where you defined v, call the function this way: >> v= [1 2 3 ;4 5 6]; >> mini(v)

where is the error ?

In the command line, where you defined v, call the function this way: >> v= [1 2 3 ;4 5 6]; >> mini(v)

7 mesi ago | 0