답변 있음
What is the best way to organize parameters in a flexible way?
I would think in a class so that you write a class functionType which can hold two classes either linear or sinusoid and than de...

10년 초과 전 | 0

답변 있음
How to solve this Matlab error: "Undefined function 'distance' for input arguments of type "double."
distance is not a built-in function If your are using code from someone else than you should also ask them to provide the dis...

10년 초과 전 | 0

| 수락됨

답변 있음
using subplot(m,n,p,ax) in a loop
you cannot define an axes handle in a subplot command because the subplot command generates an axes You should just write ...

10년 초과 전 | 0

| 수락됨

답변 있음
how to reuse the line after delete or hide
try setting the linestyle to none so that the line becomes invisible instead of deleting it than you can still use the handle...

10년 초과 전 | 0

답변 있음
Is it possible to set a variable by its name?
you can use a switch - case statement for i = 1:length(params) switch my_string case 'v' v =...

10년 초과 전 | 2

답변 있음
couldn't figure out what's not working
the problem is that your f1 is not a double but an integer hence the division also gives an integer if you cast f1 to be a do...

10년 초과 전 | 0

| 수락됨

답변 있음
Plot outside a for loop with different plotstyles
doc plot will learn you this: h = plot(___) returns a column vector of lineseries handles, where h contains one handl...

10년 초과 전 | 0

답변 있음
How to get different scales on the same axis?
just use set(gca,'xTick',[0:100:1000,2000:1000:20000]);

10년 초과 전 | 0

질문


calibration problem - how to use fminsearch
<</matlabcentral/answers/uploaded_files/32059/calbrationProblem.png>> i am trying to do an automatic calibration to find an o...

10년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
I can solve this error
I do have this function available, it is part of the econometrics toolbox

10년 초과 전 | 0

| 수락됨

답변 있음
Guidance on using For Loops for loading data and applying function.
for loading a dat file you can generate the string of the file as shown below and then use this string directly as input for the...

10년 초과 전 | 0

| 수락됨

답변 있음
Display image in axes Matlab GUI.
this indeed means that the size of your image is much smaller than the size of your axes. To make it work on different computers...

10년 초과 전 | 5

| 수락됨

답변 있음
storing a value as a vector
for ii = 1:N B(:,n) = eig(A); end

10년 초과 전 | 1

| 수락됨

답변 있음
table input in GUI
userData = get(handles.uitabletag,'Data');

10년 초과 전 | 0

| 수락됨

답변 있음
how to average the minutes data to hourly data if the data is missing for some minutes(samples) in between
first read in the excel data in matlab then use datenum on the first column to get the date in matlab use histc and accumarray...

10년 초과 전 | 0

답변 있음
Intersection(A,B) not working for date
you should use a round before using using intersection to avoid floats not being equal to each other. If the dates are distingui...

10년 초과 전 | 0

| 수락됨

답변 있음
why isn´t datevec accepting strings like this one: "12-12-2012 00:00"?
I do not seem to be able to reproduce your problem. Are you sure you are providing strings to datevec (as this is not the case i...

10년 초과 전 | 1

| 수락됨

답변 있음
Setting default values of GUI controls using the CreateFcn
do you mean you have pasted it in the OpeningFcn? I have not used the findobj there but I have used it to set background imag...

10년 초과 전 | 0

문제를 풀었습니다


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

10년 초과 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10년 초과 전

문제를 풀었습니다


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

10년 초과 전

답변 있음
how to make a function that convert roman number to arabic number
how do you test your code? When I do roman('I') ans = 1 or roman('XX') ans = ...

10년 초과 전 | 0

답변 있음
Plotting two function in one figure
you are not storing your values in a vector y since therefor you would need to indicate y(ii). Also the for command will not be ...

10년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

10년 초과 전

문제를 풀었습니다


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

10년 초과 전

답변 있음
How can I save values in a matrix?
you need to provide an indexing so y(i)=SimAirplane(a,x);

10년 초과 전 | 0

| 수락됨

답변 있음
How can I animate a plot?
this code works fine when I run it. Looks pretty nice as well. clear all; close all; clc; psi0=1; psi = z...

10년 초과 전 | 0

문제를 풀었습니다


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

10년 초과 전

문제를 풀었습니다


Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

10년 초과 전

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

10년 초과 전

더 보기