Need MATLAB coding for vehicle routing problem with time windows
Sripriya, Please use the <http://www.mathworks.com/matlabcentral/fileexchange/ MATLAB file exchange> and run search with the ...

mer än 7 år ago | 0

How to rotate all my measurements of an object to a single reference line fixed in the object.
Hello Snehalatha, Can you share more details - like a sample image, code etc. ? I assume you have to find the gear axle po...

mer än 7 år ago | 0

Rotate x axis labels boxplot Matlab 2015
I don't know how to rotate the lables, even though using the graphObj = gca disp( graphObj.XLabel.Rotation ) allow...

mer än 7 år ago | 0

For loop expansion summation
It seems to me you are trying to write a tensor like summation; you will be well advised to use matrix products by re-arranging ...

mer än 7 år ago | 0

Is it possible to create a structure with fields but without defined values?
Yes. z = struct('fieldname1',[],'fieldname2',[]) z.fieldname1 z.fieldname2

mer än 7 år ago | 1

How do I append data to a MAT file from C++?
The two alternatives are nicely laid out by Adam, and James. # Adam's recommendation is to use the Mex API. # James's recomm...

mer än 7 år ago | 0

run a script that generates a structure within a function
You maybe looking for the *evalin* function, currValueOfWorkspaceVar = evalin('base','variableDefinedInBaseWorkSpace') ...

mer än 7 år ago | 0

| accepted

How to make exponents superscripted on plots instead of with e notation?
Whereas some options may exist, a simple work around does the trick following your hint; var2exp = @( varname, var ) [rege...

mer än 7 år ago | 0

Running Functions in For Loop
You can develop a solution using str2func() to turn the string into a function handle. First generate a list of 10 strings, ...

mer än 7 år ago | 0

| accepted

Why not enogh input arguments?
Try using the breakpoint feature to debug MATLAB code. It is not that hard. See the help at <www.mathworks.com/help/matlab/ma...

nästan 8 år ago | 0

My matlab somehow in degree mode
Have you tried the functions, sind(180) cosd(90) etc ? Also the MAP toolbox has the functions _deg2rad_ and _rad2d...

ungefär 8 år ago | 0

How do I specify the MATLAB code for the function in an Embedded MATLAB Function Block from the MATLAB command line?
I have a untested work-around.You can try using a masked block, including this said Stateflow block, and include the property-ch...

ungefär 8 år ago | 0

How to distinguish each fiber and analyze the properties of the fiber?
Have you tried a auto-correlation and counting the peaks? This could easily give you the number of fibers, since they all resemb...

ungefär 9 år ago | 0

Representing system by FSM with Matlab Coding
@Walter I agree with you, and @Zubin you need to narrow down the question to a particular reference. We don't seem to understand...

ungefär 9 år ago | 0

Coverstion of Matlab code to HDL
@Neha I would recommend thinking your MATLAB function as a chip-design interface, when you want to generate HDL from it. Wha...

ungefär 9 år ago | 0

GUI handles.*** vs hObject
I understand you are having problems accessing a property of the radio-button class. Since radio buttons behavior is differen...

ungefär 9 år ago | 0

Print a cell arrays into text file
You want to try and use '%04d' '%10s' to print 4 digit integers, and 10 letter strings, i.e. use a maximum limit, and fixed widt...

ungefär 9 år ago | 0

problem with control signal
If your signal is in variable *x*, you need to use the transform, y = (x+10)/2 So you can implement this equation easi...

mer än 9 år ago | 1

How can I plot this vector
Hello @Osasu I recomment learing about MATLAB via tutorial, <http://www.mathworks.com/help/matlab/ref/plot.html>. I recommend...

mer än 9 år ago | 0

Using Sum(W) ==1 as a condition in a function
@Andrew on the similar lines as @Image Analyst - I think your return value is not assigned because you don't enter the if-condit...

mer än 9 år ago | 0

Send PuTTY Command Through Matlab Script
AFAIK this is not currently possible in MATLAB, i.e. to have a live terminal session - you need pipes and MATLAB doesn't offer t...

mer än 9 år ago | 0

| accepted

I need to do a Sign Restriction SVAR in Matlab
@Gareth MATLAB has concepts of script and a function. You cannot mix both. If you start a M-file with a MATLAB command that i...

mer än 9 år ago | 0

| accepted

Yes. Try MATLAB timer object. <http://www.mathworks.com/help/matlab/ref/timer.html?searchHighlight=timer MATLAB timer>

mer än 9 år ago | 1

| accepted

how to combine values into one cell in a matrix within a matrix
If you are on MATLAB v13a or later you can try size(s) %put your 11x2 cell here cellJoinedAsString = strjoin(s)

mer än 9 år ago | 0

Find distance between to elements of a "circular" vector
Assuming your list is unique you can get the linear positions of two numbers as, p1 = find( v == n1 ) p2 = find( v == n2...

mer än 9 år ago | 1

Hello everyone, I have a matlab problem and I don't know how to go about it.The question goes thus: Using a matlab code prove that for discrete time sinusoids whose frequencies are seperated by an integer multiple of 2*pi are identical. Pleas
Usually forum members don't provide canned homework solutions. You have a better chance to receive help when you show your work....

mer än 9 år ago | 0

How to run two for loops
To do it the way you want, not my preference, you should write a double loop, and compute the index into the cell array *h* F...

mer än 9 år ago | 1

| accepted

Find locations of repeated values?
Guessing from reading the code, and the comments in the code itself, you are looking for the variable, *startindex* [starti...

mer än 9 år ago | 0