Solved


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

11 years ago

Solved


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

11 years ago

Question


Does .save work correctly for Excel object in Excel 2010?
Hi, I used to run certain matlab scripts for formatting excel sheets. I use activex for accesing Excel(Office 2003) in those sc...

11 years ago | 1 answer | 0

1

answer

Answered
SIMULINK error: Unable to determine a fixed step size based on the sample times in the model
Immediate fix is to choose a variable step solver(in the solver type) if you really don't need a fixed step solver. If you inten...

11 years ago | 0

| accepted

Question


Best Way to Update Simulink
Hi Everyone, I am migrating some of my models(with many linked libraries) from R2010b to 2011b. Can you please suggest what is ...

11 years ago | 0 answers | 0

0

answers

Question


Push Libraries without conflicts
Hi everyone, I have a large simulink model with many number of references to library. Some of the libraries are referenced at...

11 years ago | 0 answers | 0

0

answers

Answered
How to generate an m-file only with MATLAB codes?
fName= 'abc.m'; fid = fopen(fName,'a'); %a for append, you can use 'w' instead to write freshly fprintf(fid ,'%s\n','a =...

11 years ago | 0

| accepted

Answered
How do i add with subfolders to my pathway?
addpath(genpath(FolderName)); will add all subfolders under FolderName to MATLAB's Path. or manually as shown in the...

11 years ago | 0

| accepted

Answered
How to delete a specific number from a vector, if there are duplicates after each other?
a = [1 2 3 4 5 0 4 6 5 0 0 98 0 0 1 2 23 4 0 0 0 2 5 8 0]; a(a(l)==0 & a(l+1)==0)=[];

11 years ago | 0

Answered
What's the purpose of putting 'pause(0)' when you have a large code?
http://www.mathworks.com/matlabcentral/answers/7309-is-pause-a-superset-of-drawnow

11 years ago | 0

Answered
renaming the image files
1. Get the Files in the directory... ([~,ListofImages]=dos('dir /b /s te_*.jpg');) 2. Get the Number from it..(1, 2, etc)...

11 years ago | 0

| accepted

Answered
How can I use multiple files from uiget with importdata?
You have to use a for loop to load files one by one. delimiterIn = ','; [filename,pathname,~] = uigetfile({'*.*', 'All ...

11 years ago | 0

Question


Migrating from MATLAB 2010b to 2011b!
Dear Everyone, I need to update some Simulink Models from MATLAB 2010b to MATLAB 2011b. 1) Is it sufficient if I open the Mod...

11 years ago | 0 answers | 0

0

answers

Answered
Change sample rate for simulation in simulink
Your solver should be fixed size, and the fixed step size can be set at simulation->Configuration Parameters-> Fixed-step size (...

11 years ago | 2

| accepted

Answered
Replace bad data in a 24x45x65 matrix. zeroes and values greater than 10 etc..
say some data is iData=rand(24,45,65); %This data is normalized=>the double values are between 0 and 1. You can get all...

12 years ago | 0

Answered
is compression used to reduce the file size?
Every Image file has lots of redundant data. Transformation algorithms reduce the redundancies in the image data there by reduci...

12 years ago | 1

| accepted

Answered
How to design FIR Filter with weights
if your input is x(n), output y(n)=W01*x(n)+W02*x(n-1)+W03*x(n-2)+W04*x(n-3)+W05*x(n-4); You have to handle y(1) to y(4) beca...

12 years ago | 0

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

12 years ago

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

12 years ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

12 years ago

Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

12 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

12 years ago

Answered
Can any one tell me how i convert analoge signal (Excel file captured from data aquisiton system) to digital form by Matlab
do an xlsread and get the data from Excel File. Clean Data if needed (removing NaN etc) Write a quantizer to get digital ...

12 years ago | 0

Answered
how to give output file name at the time of execution in matlab..?
<http://www.mathworks.in/help/matlab/ref/uiputfile.html uiputfile> will be best for your needs!

12 years ago | 0

| accepted

Answered
Truncation of a vactor
Or in other words, you might do x(x>10)

12 years ago | 0

Question


Are MATLAB GUIs good? I think so, while others dont!
Hi Everyone, This is a very generic question. I have been using MATLAB GUIde for GUI development since its 2007b version. Thoug...

12 years ago | 1 answer | 2

1

answer

Answered
How to convert xls to mat file ?
%get the values in the Excel using xlsread. [num,txt,raw] = xlsread(filename,sheet,xlRange); %combine data as you want: ...

12 years ago | 37

Answered
Call a Software with Matlab
If you want to run an external software, <http://www.mathworks.in/help/matlab/ref/actxcontrol.html ActiveX> is the best way. MAT...

12 years ago | 0

| accepted

Answered
Create a script using If statements
x=input('Input your number') if mod(x,2)==0 disp('Even Number'); else disp('Odd Number'); end

12 years ago | 0

Answered
question on target tracking using simulink blocks
You can use a to Workspace block (Available under sinks in the Simulink Block Library). Say your co ordinate variables are X...

12 years ago | 0

Load more