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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 2

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 0

Question


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

ongeveer 7 jaar ago | 1 answer | 0

1

answer

Answered
I can solve this error
I do have this function available, it is part of the econometrics toolbox

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 5

| accepted

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

ongeveer 7 jaar ago | 1

| accepted

Answered
table input in GUI
userData = get(handles.uitabletag,'Data');

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 1

| accepted

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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 0

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

| accepted

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

ongeveer 7 jaar ago | 0

Answered
Receive and send values in GUI
in your gui you need an edit text box (or equivalent, depending on which input values you require, it is not clear from your que...

ongeveer 7 jaar ago | 1

| accepted

Question


special kind of interpolation
I have some data shown in the example figure below for which I want to perform an interpolation to calculate the average value. ...

ongeveer 7 jaar ago | 2 answers | 0

2

answers

Answered
Converting values to 0 and 1 and then counting occurrences!
is this what you mean as it is not clear to what end you would like to do this x(x<20) = 0; x(x>=20) = 1; temp ...

ongeveer 7 jaar ago | 0

Answered
Create a vector with known indices and assign to that values from known vectors
maybe you can try something like this to keep it vectorized, if in reality your vector only has five elements, than you could al...

ongeveer 7 jaar ago | 1

Answered
How can I add number after char and define as a variable
you could use the eval function for this but it is not recommended to do this (search the Internet for why) You could use som...

ongeveer 7 jaar ago | 1

Answered
Help with switches in GUI
I think you are confused on how to add values to the guidata as now you are overwriting the values of OnOff by the pause values....

ongeveer 7 jaar ago | 0

| accepted

Answered
save large image/figure
I always use the export_fig figure for saving images since this doesn't crop the figure so you might want to look at this? ht...

ongeveer 7 jaar ago | 0

Answered
How to support default parameter in MATLAB FUNCTION ?
in your function you need to check how many parameters have been passed function myFunction(variable1,variable2, optionalVa...

ongeveer 7 jaar ago | 1

Load more