Answered
command for one copy of 3 figure in subplot form and put it in only one picture in bmp format
saveas() works on a figure not on a axes, so the following code will save the whole figure no matter running saveas(h,...) or sa...

15 years ago | 2

| accepted

Answered
command for copy a figure and put it in a specified folder in a specified name and then close it
The key function is saveas(). The others are like fullfile(), exist(File,'file'). PathStr='c:\ClassifyingResults'; direc...

15 years ago | 1

| accepted

Answered
GRAD
For numerical analysis, >> help gradient GRADIENT Approximate gradient. [FX,FY] = GRADIENT(F) returns the numeri...

15 years ago | 0

Answered
how to model a time varying finction from text file.....
Okay, you must know the sample time of your data in the text file. Let's assume your sample time is 0.1 second. Your data in the...

15 years ago | 0

| accepted

Answered
My version of MATLAB is lacking the built in function Imregionalmax, how do I get that?
This function is from the Imaging Processing Toolbox. You need to have that toolbox to have this function. <http://www.mathwo...

15 years ago | 0

Answered
Initialization commands cannot be evaluated for noise block in simulink
What are the parameters that you provided at the parameter dialog window, such as Mean value, Variance, Initial seed, Sample tim...

15 years ago | 0

| accepted

Answered
combining two plots
It may or may not work depending what is in that .m file. But try this, assume you have file1.m and file2.m file1; hold ...

15 years ago | 0

Answered
Adding time vector to 3D surf plot
set(gca,'zticklabel',T)

15 years ago | 0

Answered
Visual Basic and Matlab
If you have the MATLAB GUIDE application done, it should have some files for it, such as MyGui.fig, MyGui.m, make sure they are ...

15 years ago | 0

| accepted

Answered
Plotting spheres color according to a given value
May not be exactly what you want. Just for your reference. %% data=[1,2,3,1; 2,3,4,.5 4,5,6,.3]; h=...

15 years ago | 0

Answered
How do i load dice faces in the gui for my dice??
help imread help imshow

15 years ago | 0

| accepted

Answered
What is the difference between the statements: A=2; A=(2); A=[2]?
To merely answer your question. A=2 is the same as A=[2], is because 2 is a special case of a matrix with size as 1x1. A=2 is ...

15 years ago | 0

Answered
how to start writing a program ?
My two cents: # Draw your programming flow chart on paper # help or doc # Use the debugging mode to run code step by step ...

15 years ago | 1

Answered
A basic matlab problem
A=9.5*ones(3,4)

15 years ago | 1

| accepted

Answered
Error using Real-Time Workshop. Name is nonexistent or not a directory.
'rapidstm32_make_rtw_hook.m' is a .m file provided by the board supplier to do whatever processing they want through the standar...

15 years ago | 0

Answered
Apply a variable delay to an audio signal
If you want to delay a signal, usually you can pad zeros in front of it. Let's say x is your signal data, it's sample time is 0....

15 years ago | 1

Answered
convert a cell to .xls file and save it in a specified folder
data=magic(5); file=fullfile(pathstr,'r.xls'); if exist(file,'file') file=fullfile(pathstr,'Modified.xls'); end ...

15 years ago | 1

| accepted

Answered
Simulink Quadrotor Testing
There are lots of rapid prototyping systems on the market. TMW has a few too. I don't know what is the "reasonable price" for yo...

15 years ago | 0

| accepted

Answered
HOW TO HANDLE MORE THAN ONE FIGURES IN MATLAB GUI
What function do you use, edit() or open(). If you use open(), you may need to specify the .fig extension. For example: %% ...

15 years ago | 1

| accepted

Answered
Radio buttons without GUIDE
You can add that "un-check the radio buttons" command inside the CloseRequestFcn callback function.

15 years ago | 0

Answered
Buck Converter
To do that type of modeling in Simulink, you need the SimElectronics toolbox. <http://www.mathworks.com/products/simelectronics...

15 years ago | 0

Answered
Possible to set a tooltip for each option of a popupmenu?
A not-too-bad workaround is to change the tooltipstring of the pop-up menu dynamically in the function callback of the pop-up me...

15 years ago | 2

| accepted

Answered
mrdivide for sparse blockdiagonal matrices
I don't know. You could write a test to find out. From the code below, it seems that as N grows, approach 2 is faster. %% ...

15 years ago | 0

Answered
Create block diagonal matrix by slicing blocks from non-square matrix
%% a=magic(3); n=4; A=repmat(a,n,1); B=mat2cell(A,3*ones(1,n),3); C=blkdiag(B{:})

15 years ago | 1

| accepted

Answered
Excluding outlying data
If you have the Statistics Toolbox, the function trimmean() might help.

15 years ago | 0

Answered
Excel Reading and Processing
Do you have to use actxserver? If not, why not use xlsread? [Num,Txt,Raw]=xslread('StudentMark.xls') For example, if ...

15 years ago | 0

Answered
Formatting or encoding issue using fprintf
S=regexprep('base string','keyword','new word') shouldn't return a cell array if your input is a string as 'base string'. Try...

15 years ago | 0

Answered
How to disable matlab editor search beep when nothing found
try run 'beep off'. It stops the beep sound afterwards when I type in 'beep'. But it didn't stop the beep sound for 'not found' ...

15 years ago | 4

Answered
PLOT from summing series.
You need to store your data in a vector: Before your 'for t=0:20' line, insert a line: 'Tyt=zeros(21,1);' Change the assignment...

15 years ago | 0

Answered
Puzzler: Quickly tell if two absolute indices (a,b) are four connected for n x m matrix.
Circle-shifting neighbors are considered connected. function flag = isFourConnected(a,b,n,m) % % a,b: indices of interest...

15 years ago | 1

Load more