回答済み

Calculating and Adding Percent Error to a Graph

You are missing the 'dot' in the following expression: percent_error= 100*(1)+(0.5*exp(-4*t)-(0.5*exp(-2*t))-(2-exp(-4*t(i)...

Calculating and Adding Percent Error to a Graph

You are missing the 'dot' in the following expression: percent_error= 100*(1)+(0.5*exp(-4*t)-(0.5*exp(-2*t))-(2-exp(-4*t(i)...

9年弱 前 | 0

回答済み

Cannot deduce a transfer function! Help!

I always use fdatool it's pretty straight forward and you can see the result right away.

Cannot deduce a transfer function! Help!

I always use fdatool it's pretty straight forward and you can see the result right away.

9年弱 前 | 0

回答済み

Looping a function m-file, figures not closing

Try to make the figure invisible: set(gcf, 'Visible', 'off')

Looping a function m-file, figures not closing

Try to make the figure invisible: set(gcf, 'Visible', 'off')

9年弱 前 | 0

回答済み

function input

See this: http://www.mathworks.com/matlabcentral/answers/21111-getting-function-as-an-argument-of-function

function input

See this: http://www.mathworks.com/matlabcentral/answers/21111-getting-function-as-an-argument-of-function

9年弱 前 | 1

| 採用済み

回答済み

Finding the number of distinct letters in a string

For single letter detection I would create an array of 26 members. Now, assuming you have non-capital letters in the string you ...

Finding the number of distinct letters in a string

For single letter detection I would create an array of 26 members. Now, assuming you have non-capital letters in the string you ...

9年弱 前 | 0

回答済み

Power Spectral Density Plot

If you are using periodogram function without outputs, then it plots dB/Hz. However, if you do: [Pxx,w] = periodogram(...);...

Power Spectral Density Plot

If you are using periodogram function without outputs, then it plots dB/Hz. However, if you do: [Pxx,w] = periodogram(...);...

9年弱 前 | 0

回答済み

Save base workspace MAT file from GUI

Here is what I would do: for saving a particular set of variables in the struct you can create a struct and save it: structDA...

Save base workspace MAT file from GUI

Here is what I would do: for saving a particular set of variables in the struct you can create a struct and save it: structDA...

9年弱 前 | 0

回答済み

colormapeditor

Quick way to fix the problem is: colormapeditor; pause; %conntinue your code With this, after the colormap editor appear...

colormapeditor

Quick way to fix the problem is: colormapeditor; pause; %conntinue your code With this, after the colormap editor appear...

9年弱 前 | 0

回答済み

How to seperate fractional and decimal part in a real number

number=1.23; integ=floor(number); fract=number-integ;

How to seperate fractional and decimal part in a real number

number=1.23; integ=floor(number); fract=number-integ;

9年弱 前 | 6

| 採用済み

回答済み

writing to an array

For .txt file this should work: A=importdata('Name.txt'); A=bin2dec(A); %not sure that this line will work save (name,'A'...

writing to an array

For .txt file this should work: A=importdata('Name.txt'); A=bin2dec(A); %not sure that this line will work save (name,'A'...

9年弱 前 | 0

回答済み

I need to find difference equation and frequency response

Difference equation (I assume that z^z-1 should be z^-1): 3y[n-2]+2y[n-1]+y[n]=-3x[n]+z[n-1] Frequency response: B=...

I need to find difference equation and frequency response

Difference equation (I assume that z^z-1 should be z^-1): 3y[n-2]+2y[n-1]+y[n]=-3x[n]+z[n-1] Frequency response: B=...

9年弱 前 | 0

回答済み

confused abt z and z(-1) in matlab

You can take your H(z) and divide by z. So you will have: z^(-1)-2 / z^(-1)+3. Now you can create two vectors containing zeros a...

confused abt z and z(-1) in matlab

You can take your H(z) and divide by z. So you will have: z^(-1)-2 / z^(-1)+3. Now you can create two vectors containing zeros a...

9年弱 前 | 0

| 採用済み

回答済み

getting function as an argument of function

Let's say your function is f(x,y)=2x+y. You need to create this function prior you send it to your backEuler: f=@(x,y)2*x+y...

getting function as an argument of function

Let's say your function is f(x,y)=2x+y. You need to create this function prior you send it to your backEuler: f=@(x,y)2*x+y...

9年弱 前 | 0

| 採用済み

回答済み

how to initialize an M×N array whose size is unknown in for-loop

One but not very intelligent way to do it is allocate more memory that you need. You probably have an idea of what what would be...

how to initialize an M×N array whose size is unknown in for-loop

One but not very intelligent way to do it is allocate more memory that you need. You probably have an idea of what what would be...

9年弱 前 | 1

質問

GUI handles does not update

Hi. Here is a problem: on my gui I have axes where I display an image. At first, my code was as following: axes(handles.ax...

9年弱 前 | 1 件の回答 | 0

回答済み

Extracting data of bode plot

This is straight from help file: [MAG,PHASE,W] = BODE(SYS) I hope you know what to do from here on.

Extracting data of bode plot

This is straight from help file: [MAG,PHASE,W] = BODE(SYS) I hope you know what to do from here on.

9年弱 前 | 0

| 採用済み

回答済み

Create matrix...please help me..

I am also confused. Let's say that the user gives you two matrices A and B. It seems like you need to insert columns of one matr...

Create matrix...please help me..

I am also confused. Let's say that the user gives you two matrices A and B. It seems like you need to insert columns of one matr...

9年弱 前 | 1

回答済み

Out of memory when calculating very large Matrix (~100000 , 200000)

Every time you add a new raw or column to your matrix, the program uses new memory because your old data + new data does not fit...

Out of memory when calculating very large Matrix (~100000 , 200000)

Every time you add a new raw or column to your matrix, the program uses new memory because your old data + new data does not fit...

9年弱 前 | 0

回答済み

How to create a random binary matrix with equal number of ones in each column?

Since it's a RANDOM matrix, you are not guaranteed to have the same amount of one's and zero's (at least it seems logical to me)...

How to create a random binary matrix with equal number of ones in each column?

Since it's a RANDOM matrix, you are not guaranteed to have the same amount of one's and zero's (at least it seems logical to me)...

9年弱 前 | 0

回答済み

Using pushbutton to load file in GUI

do this: rawdata1=load([filepath1 filename1]); GUI does not pass files to the workspace. You have to use the rawdata1 va...

Using pushbutton to load file in GUI

do this: rawdata1=load([filepath1 filename1]); GUI does not pass files to the workspace. You have to use the rawdata1 va...

9年弱 前 | 1

| 採用済み

回答済み

better way of plotting to analyse

Check out help file on bar or barh. This form might be more clear for reading.

better way of plotting to analyse

Check out help file on bar or barh. This form might be more clear for reading.

9年弱 前 | 0

回答済み

are there another func.?

type in Command Window: format short and the output will be of about 5 decimal digits. However, if you have such a large num...

are there another func.?

type in Command Window: format short and the output will be of about 5 decimal digits. However, if you have such a large num...

9年弱 前 | 0

回答済み

How to see freq response of a wave file

f='name.wav'; [x,sr]=wavread(f) ; Ts=1/sr; N=2^15; x=x(1:N)'; ...

How to see freq response of a wave file

f='name.wav'; [x,sr]=wavread(f) ; Ts=1/sr; N=2^15; x=x(1:N)'; ...

9年弱 前 | 0

回答済み

converting images

If you dont use Doppler imaging (your images are grayscale), then it's better to have them as one channel, than is not RGB. This...

converting images

If you dont use Doppler imaging (your images are grayscale), then it's better to have them as one channel, than is not RGB. This...

9年弱 前 | 0

回答済み

declare variable accross all button

Just simply use handles.k instead of k everywhere. Then, after you changed this variable and want to save changes to it, you nee...

declare variable accross all button

Just simply use handles.k instead of k everywhere. Then, after you changed this variable and want to save changes to it, you nee...

9年弱 前 | 0

回答済み

iphone x-ray scanner

It works very simple: they play recorded video created from the picture of x-ray scan and as it is playing, they move it along t...

iphone x-ray scanner

It works very simple: they play recorded video created from the picture of x-ray scan and as it is playing, they move it along t...

9年弱 前 | 0

| 採用済み

回答済み

how to check the contents of the variables?

don't put the semi column after the statement x=5 and you will get the expression in Command Window: >>x= >> 5 ...

how to check the contents of the variables?

don't put the semi column after the statement x=5 and you will get the expression in Command Window: >>x= >> 5 ...

9年弱 前 | 0

| 採用済み

回答済み

How to pass arrays to and from a GUI?

This is how I do it: x=evalin('base','X'); where x is my variable in GUI, 'base' assumes WorkSpace and X is a variable that...

How to pass arrays to and from a GUI?

This is how I do it: x=evalin('base','X'); where x is my variable in GUI, 'base' assumes WorkSpace and X is a variable that...

9年弱 前 | 1