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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 2

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 1

| akzeptiert

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

mehr als 15 Jahre vor | 1

| akzeptiert

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

mehr als 15 Jahre vor | 10

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 1

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 2

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

Mehr laden