답변 있음
Summation with looping
for n=0:16 is the correct syntax, you are also making another error by doing the summation in every iteration, you should instea...

거의 13년 전 | 0

| 수락됨

답변 있음
Does anyone have a matlab implementation of the Matrix Pencil method ?
<http://www.mathworks.de/matlabcentral/newsreader/view_thread/14218> (Answer found by using my google skills :) )

거의 13년 전 | 0

답변 있음
Need to change one of my constants into a variable
iter=1; for HofB=2:100 %your code goes here %don't forget to comment the HofB line of your code TotLpRec(iter)=TotLp; ...

거의 13년 전 | 0

| 수락됨

답변 있음
GUI for a Simulink realtime workshop model setting values for gain constans etc
Use the set_param, make each PID value/gain a variable from workspace, when you change any of those variables you also need to d...

거의 13년 전 | 0

답변 있음
Simple Loop
ts = 0.01; % Timestep (s) a_b = zeros(1,6001); i=1; for t_a=0:ts:60 a_a = t_a*7; %i ...

거의 13년 전 | 0

| 수락됨

답변 있음
Hiding text of a string (like passwords) - not logindlg function
<http://www.mathworks.com/matlabcentral/fileexchange/6590-passcode See if this passcode by Elmar Tarajan got the code you nee...

거의 13년 전 | 0

답변 있음
how to use push button to create new figure window in gui
First and most important question, are you using GUIDE or doing all in one m-file (programatically)? The idea is to put some co...

거의 13년 전 | 0

답변 있음
Misbehaving script
I see it working properly, see it by yourself with this code clc Q_in=(2/9); n_nozzle=10; n_row=9; d_in=250e-3;...

거의 13년 전 | 0

답변 있음
Really Simple Matrix Multiply Question
Yet another possible solution A = [1,5,6,3,2,1] B = [3,4,6] C=cell2mat(arrayfun(@(X)times(A(X),B),1:numel(A),'uni',0)...

거의 13년 전 | 0

답변 있음
compare values in two workspace ?
So the question is just about comparing arrays of different sizes? Maybe this way a=ones(1000,1); b=ones(900,1); %b(10)=...

거의 13년 전 | 1

| 수락됨

답변 있음
Plotting a line x=constant
plot(x*ones(size(y)), y, 'LineWidth', 10) or plot(x*ones(1,size(y,2)), y, 'LineWidth', 10)

대략 13년 전 | 1

답변 있음
matlab gui templates
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples 41 Complete GUI Examples by Matt Fig> those...

대략 13년 전 | 0

답변 있음
vector Shift
A=[1 2 3 4 5] B=zeros(size(A)); n=2; %Shift units B(n+1:end)=A(1:end-n)

대략 13년 전 | 4

답변 있음
Problem with execution of "nested if" commands.
This *if 0<t<=4* doesn't work properly in MATLAB, but this does *if 0<t && t<=4* , you have to separate the conditions because M...

대략 13년 전 | 1

| 수락됨

답변 있음
I need to add the names of the players in of my game in my gui.
x=input('Put the name of player 1:','s'); %choose input as string set(handles.uipanel1,'title',x) %set the value ...

대략 13년 전 | 0

| 수락됨

답변 있음
GUI Button Highlights in Blue (When Clicked)
See if the button has some code on his ButtonDownFcn, if there's some code in it remove it, also see the SelectionHighlight, tur...

대략 13년 전 | 0

답변 있음
Give Focus to GUI Window
figure(FigHandle) %FigHandle is the handle for the GUI figure

대략 13년 전 | 2

| 수락됨

답변 있음
How to disable a button later in the program on gui
%assuming you are using GUIDE and the button is called pushbutton1 set(handles.pushbutton1,'Enable','off') After the cod...

대략 13년 전 | 17

| 수락됨

답변 있음
Value swapping
x = [ 7 8 7 13 1 7 3 7] f2=find(x(:,2)==7)+size(x,1); f1=find(x(:,1)~=7); t...

대략 13년 전 | 0

답변 있음
how to create a Fig for GUI?
Just type and execute: guide and have fun with it, don't forget to read the documentation doc guide The other way is to ...

대략 13년 전 | 0

답변 있음
Passing multiple outputs inside a function
doc varargin

대략 13년 전 | 1

답변 있음
NAN+inf
Can you please tell my why are you trying to get a result from exp(4096)? you do know that the result would be a very huge numbe...

대략 13년 전 | 0

답변 있음
Matrix Manipulation
A = [1; 1; 3; 1; 2; 1; 1; 1; 3; 1; 1; 1; 1; 2; 1; 1; 1; 1; 1; 3; 1; 1; 1; 2; 1; 1; 1; 1; 1; 2; 2; 1; 1; 1; 2; 1; 1; 2; 1; 1; 1...

대략 13년 전 | 0

| 수락됨

답변 있음
NAN of matrix
No e(4957) isn't exponential of that number, your e is a variable and you are calling the value at index 4957, exponential is do...

대략 13년 전 | 0

| 수락됨

답변 있음
load() into workspace?
maybe evalin('base', 'load(...')

대략 13년 전 | 0

답변 있음
how to write information into text boxes after GUI runs?
Put the code inside the OpeningFcn set(handles.text1, 'String', input_folder_name) %text1 is the name of the textbox, y...

대략 13년 전 | 0

| 수락됨

답변 있음
strtok return nothing
There's no 0.5 delimiter on the string, strtok should return T=5.5 but it doesn't, that's weird because it says on the documenta...

대략 13년 전 | 0

| 수락됨

답변 있음
How do I extract current executing file name to be inserted into a plot?
MyMsg=[mfilename ',' date]' spy uicontrol('style','text','string',MyMsg,'Position',[520 10 20 400])

대략 13년 전 | 0

| 수락됨

답변 있음
how to solve simultaneous equations?
Equations: 1x + 2y = 0 2x + 2y = 0 MATLAB code: A = [1 2;2 2] B = [0;0] X = A\B <http://www.soest.hawaii.edu/m...

대략 13년 전 | 0

| 수락됨

답변 있음
command for copy a figure and put it in a specified folder in a specified name and then close it
spy saveas(gcf,'spy','jpg') %save into current directory or dfile='c:\ClassifyingResults\'; %the directory must exi...

대략 13년 전 | 1

더 보기