Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Pregunta


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

más de 11 años hace | 1 respuesta | 0

1

respuesta

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

más de 11 años hace | 0

| aceptada

Pregunta


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

más de 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 11 años hace | 0 respuestas | 0

0

respuestas

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

Respondida
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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

Pregunta


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

más de 11 años hace | 0 respuestas | 0

0

respuestas

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

más de 11 años hace | 2

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

Resuelto


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

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


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

casi 12 años hace

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

casi 12 años hace | 0

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

Pregunta


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

casi 12 años hace | 1 respuesta | 2

1

respuesta

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

casi 12 años hace | 37

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Cargar más