Réponse apportée
plotting circles
Here's a function to draw circles: function circle(x,y,r) %x and y are the coordinates of the center of the circle %r is ...

environ 15 ans il y a | 15

| A accepté

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

environ 15 ans il y a | 0

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

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 1

Réponse apportée
A question about the function canocorr
take a look at the function edit canoncorr

environ 15 ans il y a | 0

Réponse apportée
[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...

environ 15 ans il y a | 2

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

environ 15 ans il y a | 0

Réponse apportée
All Blocks Missing from Simulink Library Browser
http://www.mathworks.com/matlabcentral/answers/2782-simulink-library-browser-blocks-gone

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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=...

environ 15 ans il y a | 1

Réponse apportée
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.

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Orient Xticklables at 90 degrees
Take a look at <http://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabelrotate xticklabelrotate>

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How to find a surface area for any plotted wave
doc trapz doc cumtrapz

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 10

| A accepté

Réponse apportée
SIMULINK AND ARDUINO. PLEASE HELP!
Use a Mux block before connecting to the scope

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 1

Réponse apportée
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)/...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

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

environ 15 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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('...

environ 15 ans il y a | 0

Réponse apportée
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) ...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
programming simulink blocks
<http://www.mathworks.com/help/toolbox/simulink/ug/bq6muoa.html Tutorial: Creating a Custom Block>

environ 15 ans il y a | 0

Réponse apportée
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 ...

environ 15 ans il y a | 0

Charger plus