Feeds
已回答
Nested function global variable
Hi, try this link: http://de.mathworks.com/help/matlab/ref/global.html
Nested function global variable
Hi, try this link: http://de.mathworks.com/help/matlab/ref/global.html
9 years 前 | 0
已回答
hi, if i have array=[89 130 150 180...],in 1st iteration i need to perform "1:array(1)",in 2nd iteration i need "array(1)+1 :array(2)",in 3rd iteration i need "array(2)+1 :array(3)" and so on,i tried a lot,plz help me
Hi, my suggestion is: do the first iteration outside the loop, the remaining can be done within: 1:array(1); % do ...
hi, if i have array=[89 130 150 180...],in 1st iteration i need to perform "1:array(1)",in 2nd iteration i need "array(1)+1 :array(2)",in 3rd iteration i need "array(2)+1 :array(3)" and so on,i tried a lot,plz help me
Hi, my suggestion is: do the first iteration outside the loop, the remaining can be done within: 1:array(1); % do ...
9 years 前 | 0
已回答
How can I create m file with several properties?
Hi, try to start with this link: http://de.mathworks.com/help/matlab/matlab_prog/support-variable-number-of-inputs.html
How can I create m file with several properties?
Hi, try to start with this link: http://de.mathworks.com/help/matlab/matlab_prog/support-variable-number-of-inputs.html
9 years 前 | 0
已回答
R2015a no longer sets the path from pathdef.m upon startup
Hi, I had a similar problem with my new installation of 2014b. The Matlab support only suggested a work around ... My...
R2015a no longer sets the path from pathdef.m upon startup
Hi, I had a similar problem with my new installation of 2014b. The Matlab support only suggested a work around ... My...
9 years 前 | 0
已回答
State Transition with a time delay
Hi, you have to combine your two conditions with '&&'. That should solve your problem.
State Transition with a time delay
Hi, you have to combine your two conditions with '&&'. That should solve your problem.
9 years 前 | 0
已回答
GUI buttons won't do anything?
Hi, my impression is, that you should call a script with the calculate button instead of writing the whole function there. ...
GUI buttons won't do anything?
Hi, my impression is, that you should call a script with the calculate button instead of writing the whole function there. ...
9 years 前 | 0
已回答
How do I store the x's, the v's and the F's from this for loop into an array??? pls and ty
Hi, I just modified your code so that you can store the values for x, v and F. x=zeros(1,61); v=zeros(1,61); F=zer...
How do I store the x's, the v's and the F's from this for loop into an array??? pls and ty
Hi, I just modified your code so that you can store the values for x, v and F. x=zeros(1,61); v=zeros(1,61); F=zer...
9 years 前 | 3
已回答
Problem executing if and elseif statements
Hi, your first two elseif-statements should be changed to: 22.22>X(1,i) && X(1,i)>11.11 && X(1,i)<X(1,i-1) and ...
Problem executing if and elseif statements
Hi, your first two elseif-statements should be changed to: 22.22>X(1,i) && X(1,i)>11.11 && X(1,i)<X(1,i-1) and ...
9 years 前 | 0
已回答
Location of maximum number in matrix??
Hi, you have to take the "double maximum", since your c gives a vector. Then you can use the find() function. >> c=max(m...
Location of maximum number in matrix??
Hi, you have to take the "double maximum", since your c gives a vector. Then you can use the find() function. >> c=max(m...
9 years 前 | 0
已回答
where to type 'ver' to get the lisence?
Hi, it is the Matlab command window. The window where the lines start with >>
where to type 'ver' to get the lisence?
Hi, it is the Matlab command window. The window where the lines start with >>
9 years 前 | 1
已回答
how to save the value of each iteration in a loop for later use in the program?
Hi, use an additional counter and an array/vector for s. s will change its size in every iteration and Matlab will show you a...
how to save the value of each iteration in a loop for later use in the program?
Hi, use an additional counter and an array/vector for s. s will change its size in every iteration and Matlab will show you a...
9 years 前 | 0
已回答
How can I make my function accept vectors instead of scalars(I'm Really New to Matlab)
Hi, I modified you code so that vectors can be used as input. However, I am not sure, if I did it in the right way. It sho...
How can I make my function accept vectors instead of scalars(I'm Really New to Matlab)
Hi, I modified you code so that vectors can be used as input. However, I am not sure, if I did it in the right way. It sho...
9 years 前 | 0
| 已接受
已回答
for loop help matlab error
Hi, The error states clearly, that you try to access the 21st entry of Tc, but Tc has only 20 entries: i=i+1; Tc0=Tc(...
for loop help matlab error
Hi, The error states clearly, that you try to access the 21st entry of Tc, but Tc has only 20 entries: i=i+1; Tc0=Tc(...
9 years 前 | 1
已回答
command to stop program if there is no enough input parameters?
Hi, include the return command to stop your program. http://www.mathworks.com/help/matlab/ref/return.html
command to stop program if there is no enough input parameters?
Hi, include the return command to stop your program. http://www.mathworks.com/help/matlab/ref/return.html
9 years 前 | 0
| 已接受
已回答
stop a cycle when finds the right value
Hi, for leaving the loop you can use the break command. http://www.mathworks.com/help/matlab/ref/break.html For finding...
stop a cycle when finds the right value
Hi, for leaving the loop you can use the break command. http://www.mathworks.com/help/matlab/ref/break.html For finding...
9 years 前 | 0
| 已接受
已回答
Unable to store function output in an other variable
Hi, if you want to have an output you have to change your script: function out = d2r(x) out = (x.*pi)./180 Now you...
Unable to store function output in an other variable
Hi, if you want to have an output you have to change your script: function out = d2r(x) out = (x.*pi)./180 Now you...
9 years 前 | 0
| 已接受
已回答
Open, Edit and Save Excel file with MATLAB
Hi, I did it like this: 1. Write data into the excel file (OutputTest) with xlswrite (it starts in cell F1 in Excel): ...
Open, Edit and Save Excel file with MATLAB
Hi, I did it like this: 1. Write data into the excel file (OutputTest) with xlswrite (it starts in cell F1 in Excel): ...
10 years 前 | 1
| 已接受
已回答
How to import data from MATLAB into Excel, and then have Excel save the data
Hi, there exists the command xlswrite() http://www.mathworks.com/help/matlab/ref/xlswrite.html Does this suit your...
How to import data from MATLAB into Excel, and then have Excel save the data
Hi, there exists the command xlswrite() http://www.mathworks.com/help/matlab/ref/xlswrite.html Does this suit your...
10 years 前 | 0
已回答
Do I need a C-cpmplier?
Hi, Did you type mex -setup in your command window? If Matlab does not find a compiler, you need to install one. Here a...
Do I need a C-cpmplier?
Hi, Did you type mex -setup in your command window? If Matlab does not find a compiler, you need to install one. Here a...
10 years 前 | 0
| 已接受
已回答
how to use if-else for select transition matrix input
Hi, I do not completely understand your problem, but you can write your conditions with a switch-case statement: functio...
how to use if-else for select transition matrix input
Hi, I do not completely understand your problem, but you can write your conditions with a switch-case statement: functio...
10 years 前 | 0
| 已接受
已回答
how can i convert a matlab code into c ...
Hi, there is a product from TMW to convert Matlab code into c code: http://www.mathworks.com/products/matlab-coder/ind...
how can i convert a matlab code into c ...
Hi, there is a product from TMW to convert Matlab code into c code: http://www.mathworks.com/products/matlab-coder/ind...
10 years 前 | 0
已回答
Undefined Function or variable...NewtonRalphson
Hi, y_value is the output of your first subfunction. You define the subfunction function y_value = find_y(x_value) ...
Undefined Function or variable...NewtonRalphson
Hi, y_value is the output of your first subfunction. You define the subfunction function y_value = find_y(x_value) ...
10 years 前 | 0
已回答
Simple question with saving a .jpeg
Hi, I guess if you write s.th. like that hf1=figure('Visible','Off') it should solve your problem.
Simple question with saving a .jpeg
Hi, I guess if you write s.th. like that hf1=figure('Visible','Off') it should solve your problem.
10 years 前 | 0
| 已接受
已回答
Invert matrix specific command
Hi, it rather looks to me that you need the inv() command http://www.mathworks.com/help/matlab/ref/inv.html A = ...
Invert matrix specific command
Hi, it rather looks to me that you need the inv() command http://www.mathworks.com/help/matlab/ref/inv.html A = ...
10 years 前 | 0
已回答
Is it possible to convert a matlab code to the C code which can be run on DSK6713? If so please tell me, How to do the same?
Hi, there is a product from TMW to do that http://www.mathworks.com/products/matlab-coder/index.html?s_tid=gn_loc_drop
Is it possible to convert a matlab code to the C code which can be run on DSK6713? If so please tell me, How to do the same?
Hi, there is a product from TMW to do that http://www.mathworks.com/products/matlab-coder/index.html?s_tid=gn_loc_drop
10 years 前 | 0
| 已接受
已回答
i get a wrong answer for my code, can someone please help!
Hi, I agree with Titus that the line DTC(i)=norm(xvals(i))+norm(yvals(i)); looks strange. Did you mean abs() here...
i get a wrong answer for my code, can someone please help!
Hi, I agree with Titus that the line DTC(i)=norm(xvals(i))+norm(yvals(i)); looks strange. Did you mean abs() here...
10 years 前 | 0
已回答
for loop iteration keeps previous vector length....why? please help
Hi, your problem is that indx_row has its greates length in the first loop iteration. This length is stored. After the first ...
for loop iteration keeps previous vector length....why? please help
Hi, your problem is that indx_row has its greates length in the first loop iteration. This length is stored. After the first ...
10 years 前 | 0
| 已接受
已回答
Get a 'for' loop to update itself by user input
Hi, try this: Initialize the variables at the beginning in the OpeningFcn: handles.a=hObject; handles.b= ... % ...
Get a 'for' loop to update itself by user input
Hi, try this: Initialize the variables at the beginning in the OpeningFcn: handles.a=hObject; handles.b= ... % ...
10 years 前 | 2
已回答
How can I code for something which is running?
Hi, How about this: http://de.mathworks.com/help/matlab/ref/mfilename.html You can use strcmp() to check if the last fi...
How can I code for something which is running?
Hi, How about this: http://de.mathworks.com/help/matlab/ref/mfilename.html You can use strcmp() to check if the last fi...
10 years 前 | 0
已回答
what is deferent between Matlab2013a "ones" function with Matlab2013b
Hi, you use x and y as function parameters, so they can have non-integer values. But ones() creates a matrix, which needs to ...
what is deferent between Matlab2013a "ones" function with Matlab2013b
Hi, you use x and y as function parameters, so they can have non-integer values. But ones() creates a matrix, which needs to ...
10 years 前 | 0
| 已接受