Answered
undefined function 'minus' for input arguments of type table
You can use curly braces {} to index into the elements of a table T{3,4}

11 years ago | 0

Answered
Syntax error , Component: Simulink, Category: Block error
Looks okay to me as long as all numbers are scalars. If they are vectors or matrices, then you should add a . before the operat...

11 years ago | 0

Answered
Is it possible to call a matlab graph within the form of C #?
Sure, pretty much anything you can do with MATLAB, you can do via the MATLAB Engine.

11 years ago | 0

| accepted

Answered
quiver arrows always appear below semitransparent layer
Probably an OpenGL issue but one thing you can do is use |quiver3| with z set to some positive amount greater than the max of su...

11 years ago | 0

| accepted

Answered
Nonlinear constrained vector optimization using Optimization Toolbox
>>dbstop if error Then run the code. This will stop on the line throwing the error and you can look at the index v. the si...

11 years ago | 3

Answered
Spring Mass Problem - Code not working
The code above is part of the MuPad language and needs to be run *inside* of a MuPad notebook, not at the MATLAB command prompt....

11 years ago | 0

| accepted

Answered
Loop through Matrix, to create multiple matrices from every nth row
What do you want to do with these matrices? Often, for this I would suggest crating a 16x19xp array where each slice in the thi...

11 years ago | 1

| accepted

Answered
The largest and smallest numeric value in the array
|max()| and |min()|

11 years ago | 1

| accepted

Answered
Working with uicontrol / Working wihout GUIDE
When working outside of GUIDE, the handles structure is not implicitly passed in to the callback. Just the source and event dat...

11 years ago | 0

| accepted

Answered
Label Rotation in MATLAB 2014
In R2014a, you need to replace the tick labels with text which can be rotated. here are a few utilities to help: <http://www...

11 years ago | 0

Answered
Store variable to file in Simulink
Why not make _vec_ a second output of the function&block and then use the "To File" block?

11 years ago | 0

Answered
MATLAB usage in industry.
<http://www.mathworks.com/company/user_stories/index.html> Look at the "Browse Stories" drop down to browse by whatever topic...

11 years ago | 2

| accepted

Answered
how can i generate dll from .m function?
You can use MATLAB Compiler or perhaps MATLAB Coder to do this. <http://www.mathworks.com/products/compiler/>

11 years ago | 0

Answered
Averaging in a cell array
If you convert that to a table (cell2table) and covert the feelings to a |categorical|, you can then use |grpstats| and |varfun|...

11 years ago | 1

Answered
fastest way to read single tiff images
Consider using |blockproc| with the _'UseParallel'_ option enabled (if you have Parallel Computing Toolbox). This will do the...

11 years ago | 0

Answered
Source of Futures data
If you have the Datafeed Tooblox, |yahoo| can be used. If you do not, then perhaps this could help: <http://www.mathworks.co...

11 years ago | 0

Answered
Does curve fitting toolbox support 3D points?
|lsqcurvefit| in the Optimization Toolbox or |NonLinearModel.fit| in the Statistics Toolbox.

11 years ago | 2

Answered
Can you set figure axis properties without using gca as argument to the set command?
I think you're misunderstanding the handle and output from get. axHandle = gca Will give you the handle to the axes. Yo...

11 years ago | 1

Answered
Why mafdr works only for one threshold?
My guess is you've accidentally shadowed one of the earlier functions used by |mafdr|'s |storeyFDR| so that it's calling your fu...

11 years ago | 0

Answered
Set a time limitation on algorithms
|tic| and |toc| is one way, probably the easiest.

11 years ago | 0

Answered
use pol2cart with not equal arguments
tic [rr, thth] = meshgrid(1:100,1:1024); [x,y] = pol2cart(rr,thth); toc Taking a few thousanths of a second on my laptop...

11 years ago | 0

| accepted

Answered
Is there any possibility that a Matlab code which runs perfectly fine in 32bit system gives error in 64 bit system?
My guess is this has nothing to do with bitness but more likely an error in your code that is being reached by a different code ...

11 years ago | 0

Answered
Hi, I request you to please explain the meaning of this statement.
Break it into pieces! >>pwd What does this return? >>fullfile(pwd,'MyFolder') What happens now? For something...

11 years ago | 0

| accepted

Answered
How to use variables as filename when saving to a .txt file?
I assume Machine = 'Alpha' Where _Alpha_ is a string rather than variable. The easiest way is with |sprint| Date = ...

11 years ago | 1

| accepted

Answered
Why is sort() taking longer to resolve on multiples of 512?
I don't think |sort| has anything to do with the behavior you are seeing. Look at what happens if you preallocate _out_ ...

11 years ago | 0

Answered
4D plot using 3D array
I would use |slice()| (or maybe an |isosurface|) to slice it across various planes. A 3d scatter plot that size will look like ...

11 years ago | 0

| accepted

Answered
How can I solve an equation with variables?
I think you want c=fsolve(@(xx)ff(xx,a,b),1); This will capture a and b in an anonymous function and pass it into ff.

11 years ago | 0

Answered
Store for loop vector output into one column
doc reshape Example: m = magic(4) v = reshape(m,[],1) Or if nothing fancy is needed v = m(:)

11 years ago | 0

Answered
Translate the origin of a STL file
Your logic and algorithm implementation look correct to me. I believe the problem is coming from the way you import the STL fil...

11 years ago | 1

| accepted

Answered
Sort using flow control
function sorted = mysort(x) sorted = sort(x); end

11 years ago | 0

Load more