Answered

how to model a high pass filter in simulink?

Supposedly you have the transfer function, use the <http://www.mathworks.in/help/simulink/slref/transferfcn.html transfer fcn> b...

how to model a high pass filter in simulink?

Supposedly you have the transfer function, use the <http://www.mathworks.in/help/simulink/slref/transferfcn.html transfer fcn> b...

10 years ago | 0

Answered

Multiselect from listbox and apply to subplot

Change the _max_ and _min_ property of listbox. Refer this link : <http://www.mathworks.in/help/matlab/ref/uicontrol_props....

Multiselect from listbox and apply to subplot

Change the _max_ and _min_ property of listbox. Refer this link : <http://www.mathworks.in/help/matlab/ref/uicontrol_props....

10 years ago | 1

| accepted

Answered

how to define mathematical function ?

<http://www.mathworks.in/help/matlab/matlab_prog/anonymous-functions.html Anonymous Functions> Check this out.

how to define mathematical function ?

<http://www.mathworks.in/help/matlab/matlab_prog/anonymous-functions.html Anonymous Functions> Check this out.

10 years ago | 1

| accepted

Answered

How to implementation DFT (discrete fourier transform) to intensity?

Use the logarithmic scale to image the fourier transform. Fourier transform results in large dynamic range, thereby logarithmic ...

How to implementation DFT (discrete fourier transform) to intensity?

Use the logarithmic scale to image the fourier transform. Fourier transform results in large dynamic range, thereby logarithmic ...

10 years ago | 1

Answered

How to display the contents of a file in matlab GUI 2007b?

Here's a prototype: imageInfo = imfinfo('pout.tif'); str = evalc('display(imageInfo)'); % Create a figure with stat...

How to display the contents of a file in matlab GUI 2007b?

Here's a prototype: imageInfo = imfinfo('pout.tif'); str = evalc('display(imageInfo)'); % Create a figure with stat...

10 years ago | 1

Answered

Choose data in excel

doc xlsread The documentation says it all.

Choose data in excel

doc xlsread The documentation says it all.

10 years ago | 0

| accepted

Answered

get the name of mat file loaded by command "uiopen" ?

Use *uigetfile* instead. fileName = uigetfile('*.mat'); load(fileName)

get the name of mat file loaded by command "uiopen" ?

Use *uigetfile* instead. fileName = uigetfile('*.mat'); load(fileName)

10 years ago | 0

Answered

load .mat files in order

Check out this <http://www.mathworks.com/matlabcentral/fileexchange/10959-sort-nat--natural-order-sort sort_nat> function from t...

load .mat files in order

Check out this <http://www.mathworks.com/matlabcentral/fileexchange/10959-sort-nat--natural-order-sort sort_nat> function from t...

10 years ago | 1

| accepted

Answered

Saveas plot using name of imported data file.

[path , name , ext] = fileparts(filev); saveas(gcf , fullfile(path , [name , '.jpg'])) % You ca...

Saveas plot using name of imported data file.

[path , name , ext] = fileparts(filev); saveas(gcf , fullfile(path , [name , '.jpg'])) % You ca...

10 years ago | 0

| accepted

Answered

how to generate pulses with 180 deg phase shift

A phase shift is equivalent to multiplication by a complex exponential in frequency domain. Take an fft of the whole signal and ...

how to generate pulses with 180 deg phase shift

A phase shift is equivalent to multiplication by a complex exponential in frequency domain. Take an fft of the whole signal and ...

10 years ago | 1

| accepted

Answered

Bandpass Filter Design MATLAB Code

<http://www.mathworks.in/help/dsp/gs/design-a-filter-using-fdesign.html Design a Filter Using fdesign>

Bandpass Filter Design MATLAB Code

<http://www.mathworks.in/help/dsp/gs/design-a-filter-using-fdesign.html Design a Filter Using fdesign>

10 years ago | 0

| accepted

Answered

how to apply z transform for an image

doc czt You can apply czt on each row followed by applying it on each column.

how to apply z transform for an image

doc czt You can apply czt on each row followed by applying it on each column.

10 years ago | 1

Answered

EXTRACT NUMBER FROM A COMBINED STRING AND NUMBERS

String = 'mario5.png'; output = String(regexp(String , '[0-9]'));

EXTRACT NUMBER FROM A COMBINED STRING AND NUMBERS

String = 'mario5.png'; output = String(regexp(String , '[0-9]'));

10 years ago | 0

Answered

How to display Multiple Statements in a GUI Edit Box

String = {'This is first statement'}; set(handles.edit1 , 'String' , String); String = {String{:},'This is the 2nd statement...

How to display Multiple Statements in a GUI Edit Box

String = {'This is first statement'}; set(handles.edit1 , 'String' , String); String = {String{:},'This is the 2nd statement...

10 years ago | 1

Answered

dear all, i am trying to execute this code, but getting the error of "Error using vertcat Dimensions of matrices being concatenated are not consistent"... code is given below, please help me out.

dbstop if error type the above said command at the command prompt before running the script, it'll you to the part of code ...

dear all, i am trying to execute this code, but getting the error of "Error using vertcat Dimensions of matrices being concatenated are not consistent"... code is given below, please help me out.

dbstop if error type the above said command at the command prompt before running the script, it'll you to the part of code ...

10 years ago | 1

| accepted

Answered

Rotating of body with GUI

doc view If you are not comfortable with GUI building, check this out: <http://blogs.mathworks.com/videos/2005/10/03/guide...

Rotating of body with GUI

doc view If you are not comfortable with GUI building, check this out: <http://blogs.mathworks.com/videos/2005/10/03/guide...

10 years ago | 0

Answered

change histogram graph to smooth curve

_histfit_ fits normally distributed data. For details refer documentation. doc histfit

change histogram graph to smooth curve

_histfit_ fits normally distributed data. For details refer documentation. doc histfit

10 years ago | 0

| accepted

Answered

How to pass parameters between local functions of uicontrol, pushbutton?

<http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F How can I share data betwe...

How to pass parameters between local functions of uicontrol, pushbutton?

<http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F How can I share data betwe...

10 years ago | 0

| accepted

Answered

GUI to set folder path then to select an image

path = 'c:\users\userName\my documents\matlab'; filter = '*.bmp'; selectedFile = uigetfile(fullfile(path , filter)); imshow...

GUI to set folder path then to select an image

path = 'c:\users\userName\my documents\matlab'; filter = '*.bmp'; selectedFile = uigetfile(fullfile(path , filter)); imshow...

10 years ago | 2

Answered

More plot area ezplot

By default ezplot plots over the range -pi to pi. You can explicitly specify the range: ezplot(fun,[min,max])

More plot area ezplot

By default ezplot plots over the range -pi to pi. You can explicitly specify the range: ezplot(fun,[min,max])

10 years ago | 0

Answered

??? Error using ==> plot Invalid first data argument

*filedir(cnt).date* is a *character string*. Use _datenum_ datenum(filedir(cnt).date)

??? Error using ==> plot Invalid first data argument

*filedir(cnt).date* is a *character string*. Use _datenum_ datenum(filedir(cnt).date)

10 years ago | 0

Answered

how do i save the data from ginput?

data = ginput(2); x = data(:,1); y = data(:,2); Or simply: [x , y] = ginput(2);

how do i save the data from ginput?

data = ginput(2); x = data(:,1); y = data(:,2); Or simply: [x , y] = ginput(2);

10 years ago | 0

Answered

How do i display multiple output image from m-file in single axes with option to navigate in guide?

Insert this in the gui *OpeningFcn* and see what it echos at the command prompt: Flag = isfield(handles , 'axes2') Flag...

How do i display multiple output image from m-file in single axes with option to navigate in guide?

Insert this in the gui *OpeningFcn* and see what it echos at the command prompt: Flag = isfield(handles , 'axes2') Flag...

10 years ago | 0

Answered

I need a help about loading data into MATLAB in case of using GUI!

doc uigetfile doc xlsread doc importdata

I need a help about loading data into MATLAB in case of using GUI!

doc uigetfile doc xlsread doc importdata

10 years ago | 0

Answered

How can I plot only the real elements in a plot?

idx = (testArray==real(testArray)); testArray is the array under consideration. realComponents = testArray(idx) ;

How can I plot only the real elements in a plot?

idx = (testArray==real(testArray)); testArray is the array under consideration. realComponents = testArray(idx) ;

10 years ago | 2

| accepted

Answered

How to avoid the information loss of image conversion from uint8 to logical and then back to uint8?

graythresh(image) % check out the difference in threshold Use the same threshold and you are going to get the same image.

How to avoid the information loss of image conversion from uint8 to logical and then back to uint8?

graythresh(image) % check out the difference in threshold Use the same threshold and you are going to get the same image.

10 years ago | 0

Answered

Plotting elements in a cell array

data = cellfun(@str2double, str, 'Un', 1); plot(data)

Plotting elements in a cell array

data = cellfun(@str2double, str, 'Un', 1); plot(data)

10 years ago | 0

Answered

How to use .img format files ?

fid = fopen('fileName.img'); data = fread(fid, dataDimensions, precision) close(fid) for more info: doc fread do...

How to use .img format files ?

fid = fopen('fileName.img'); data = fread(fid, dataDimensions, precision) close(fid) for more info: doc fread do...

10 years ago | 0

Answered

How to store specific data from structure (substructure)?

That is already stored but if you want it to store in another non struct variable, you need not use a loop. follow this: Si...

How to store specific data from structure (substructure)?

That is already stored but if you want it to store in another non struct variable, you need not use a loop. follow this: Si...

10 years ago | 0

| accepted