Answered
Two problems
1) Matlab functions like sin and others only use radians, you can do the conversion radians=degrees*pi/180 2) That determin...

15 years ago | 0

Answered
Searching image files with a particular keyword within a folder
FolderPath='C:\Users\PJMDS\Desktop\TesteFicheiros'; FileNames=dir(FolderPath); ContainStrings={'C11','G11'}; %insert here ...

15 years ago | 0

Answered
for loop question
When you do things like this: NetOD_Redmean(e)= g(:,3)- k(:,3); You must ensure that you have enough "room" inside NetOD_Red...

15 years ago | 0

Answered
Searching image files with a particular keyword within a folder
This code should work for MS Windows OS, it finds the files containing the string you specify and copies them to another directo...

15 years ago | 1

Answered
A question about the function canocorr
take a look at the function edit canoncorr

15 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
People are still able to accept their own answers! <http://www.mathworks.com/matlabcentral/answers/2247-simulink-switching-for-a...

15 years ago | 2

Answered
For loope small increments
It works fine here, try this m=1:.001:4; What's the first value of the vector m?

15 years ago | 0

Answered
All Blocks Missing from Simulink Library Browser
http://www.mathworks.com/matlabcentral/answers/2782-simulink-library-browser-blocks-gone

15 years ago | 0

Answered
Linear Scale of a Frequency Response Plot (freqz) - Digital Filter
clf freqz([1],[-1 -2]); %example values ax=get(gcf,'Children'); %get the axes handles li=get(ax(1),'Children'); %get the...

15 years ago | 0

| accepted

Answered
How do I find non-consecutive zero entries?
Here's my messy code, Walter's solution is better and I also had the first value problem, I ignored the first value. input=...

15 years ago | 1

Answered
plot Low pass filter chebychev type 1 and 2
If you have the Filter Design Toolbox™ you can use the cheby1 and cheby2 functions to do the plotting.

15 years ago | 0

| accepted

Answered
Orient Xticklables at 90 degrees
Take a look at <http://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabelrotate xticklabelrotate>

15 years ago | 1

| accepted

Answered
How to find a surface area for any plotted wave
doc trapz doc cumtrapz

15 years ago | 1

| accepted

Answered
extracting data series from *.fig file
open data.fig %open your fig file, data is the name I gave to my file D=get(gca,'Children'); %get the handle of the line obj...

15 years ago | 10

| accepted

Answered
SIMULINK AND ARDUINO. PLEASE HELP!
Use a Mux block before connecting to the scope

15 years ago | 0

Answered
Error when setting a simulink block parameter
If you want to put the value inside the variable orient in your Constant block you should do: set_param('mdl0_exp/Constant...

15 years ago | 1

Answered
Need help in evaluating integral with quad
Just a dot missing from the second line, before *sin theta=0.01:0.1:2*pi-0.01; f=@(x,th)(exp(-0.5*x).*sin(x*2*sin((th)/...

15 years ago | 1

| accepted

Answered
How to embed Simulink Object Scope into gui?
You can't embed the simulink scope but you can use this <http://www.mathworks.com/matlabcentral/fileexchange/24294 Simulink Sign...

15 years ago | 0

Answered
Open file .mdl
urlwrite('http://ecee.colorado.edu/~ecen2060/materials/simulink/PV/pv_characteristic.mdl','pv_characteristic.mdl') %get the mo...

15 years ago | 2

| accepted

Answered
Importing Continuous data into Simulink from Matlab Workspace
Try with the Matlab fcn block, if the variable is just a number you just need to put the name of the variable, if it's something...

15 years ago | 0

Answered
Ouputting for loop into a matrix
y=zeros(1,30); i=[0.1:0.1:3]; j=[0.1:0.1:3]; for pos=1:numel(i) y(pos)=simulator([i(pos) j(pos)]) end fprintf...

15 years ago | 0

Answered
Controlling output from Simulink
Try with the matlab Fcn block out=u(1) %or out=u It will put the value in the block input to the variable out in the mat...

15 years ago | 0

Answered
1-phase PLL in Simulink PowerSystems blockset by Pierre Giroux
Click with the mouse right button on the pll block and select Look Under Mask, that will open the subsystem, that will surely gi...

15 years ago | 0

Answered
Bodeplot a transfer function around resonant frequency (with zero damp)
tfuc=tf([200 1 2.842e007],[1 0 1e6]); v=logspace(2,4,10000); bode(tfuc,v) It was indeed related to the frequency step...

15 years ago | 0

| accepted

Answered
Use while loops for a function to keep asking for inputs, until an invalid input is entered
y=inline('log(1/(1-x))'); while 1 x=input('Please input an x-value < 1 ->'); if x>=1, break, end fprintf('...

15 years ago | 0

Answered
Finding indices in matrix with find() function
You are using the find function in two matrices at the same time, that's not a good idea [row column]=find(LUTi==0) ...

15 years ago | 0

Answered
excel and plot
x(1:200) %all data from column 1 to 200 hold on %this will allow more lines on the same axes The last question I don't...

15 years ago | 0

Answered
programming simulink blocks
<http://www.mathworks.com/help/toolbox/simulink/ug/bq6muoa.html Tutorial: Creating a Custom Block>

15 years ago | 0

Answered
serial data & real time plot
while 2>1 % infinite loop you can do it better while 1 %same as while 2>1 Now for the plotting, first create a line ...

15 years ago | 0

Answered
switch-case interaction with uigetfile
Your code is working without any problems in matlab 2008b.

15 years ago | 0

Load more