Gelöst


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...

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Frage


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...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Frage


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 ...

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
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 =...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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)=[];

mehr als 12 Jahre vor | 0

Beantwortet
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

mehr als 12 Jahre vor | 0

Beantwortet
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)...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 12 Jahre vor | 0

Frage


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...

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
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 (...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

Beantwortet
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...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 12 Jahre vor | 0

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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...

mehr als 12 Jahre vor

Gelöst


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...

mehr als 12 Jahre vor

Gelöst


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, ....

mehr als 12 Jahre vor

Gelöst


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...

mehr als 12 Jahre vor

Beantwortet
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 ...

mehr als 12 Jahre vor | 0

Beantwortet
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!

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Frage


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...

mehr als 12 Jahre vor | 1 Antwort | 2

1

Antwort

Beantwortet
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: ...

mehr als 12 Jahre vor | 37

Beantwortet
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...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

Beantwortet
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...

mehr als 12 Jahre vor | 0

Mehr laden