Answered
An error about "index_to_remove_exceeds_matrix_dimensions"
I can try this: >> x=1:10;x(20:30)=[]; ??? Index of element to remove exceeds matrix dimensions. It means that you are tr...

15 years ago | 0

| accepted

Answered
Storing the clock time into a vector in simulink
For this task, I recommend not to use the Embedded MATLAB Function block. As you can see, if your simulation just started for a ...

15 years ago | 1

Answered
Linear data fitting
Certainly this requires some intelligence. I don't see a simple algorithm that can achieve it. What I suggest is to combine prog...

15 years ago | 0

Answered
Error on write to text file
I just confirmed that with fopen(File,'w'), the content of the file will be over-written. So you will only get the last value, w...

15 years ago | 1

Answered
Vectorizing Code - how can I populate elements of a matrix from a vector without a FOR loop?
%% a=[1 2 3]; B=arrayfun(@(x) x*ones(2),a,'uni',0); B=blkdiag(B{:})

15 years ago | 0

Answered
GUI and LIstboxes
Please type doc in Command Window, select the following from the left column: MATLAB->Creating Graphical User Interfaces->Exa...

15 years ago | 0

Answered
Split array of strings and convert to numbers?
Use str2double() or str2num() instead. You are doing the opposite.

15 years ago | 1

Answered
How to remove repeating elements from an array
*For duplicated x-y pairs, if you want to keep the last one:* %% X=[0 13 22 18 22 22 10]; Y=[0 1 3 -1 3 3 -1]; A=[X;Y]'...

15 years ago | 0

Answered
is there a way to download matlab r2010a when I already have the serial number?
For this type of question, please contact the Mathworks tech support. I believe they will have a way for you to install without ...

15 years ago | 1

Answered
adding a label to a list of values
dlmwrite() can only write matrix. What you need is a cell array that can combine string and numerical data, such as a={'xdc...

15 years ago | 1

| accepted

Answered
how to draw a hyperboloid?
As long as you have the mathematical equation describing that hyperboloid, you should be able to generate some data and then dra...

15 years ago | 0

Answered
Is it possible MATLAB be associated with FireFox and InternetExplorer
MATLAB interprets the hyperlink '<a href="matlab: plot(magic(10))">plot</a>' as to run the plot() command, whether it is in the ...

15 years ago | 1

Answered
Loading data from gui to a function
In the callback function of your push button, you have access to the handles. Pass this handles to update.m

15 years ago | 0

Answered
putting some matrix in a cell arrays
If you want to have the names, maybe it's better to use structure. Str.a=a; Str.b=b; Str.c=c; Then you can use Nam...

15 years ago | 2

| accepted

Answered
Linking of mfile with simulink model...
Are you talking about the "MATLAB Function" block in the new release? Like the one in this link? <http://www.mathworks.com/help...

15 years ago | 0

| accepted

Answered
Matlab String Logic
So your function will have three input arguments, T, P and one of Dew Point, or Wet Bulb, or Omega. There is probably no easy w...

15 years ago | 0

Answered
matlab open
This post might help. Also, once you run one instance of MATLAB, it has a file/folder browser too, you can double click the .m f...

15 years ago | 1

| accepted

Answered
Problem Importing Merged Text From Excel to Matlab
In the Excel sheet, the fourth column contains a formula like "=CONCATENATE(A1,B1,C1)". That must be the reason it was treated a...

15 years ago | 1

Answered
speed up finding common values in multiple matrices
If A is a logical matrix, A==1 is not needed. If C is a logical matrix, use true/false at the right hand side. C(B==z & A) =...

15 years ago | 0

Answered
Calling Internet Explore from MATLAB and same also for FireFox too
How about web() with -browser option. help urlread

15 years ago | 1

Answered
find intersection between matrix and vector
help ismember You need to be careful about the floating point comparison though. M=magic(10); V=1:10; [TF,LOC]=ismember(...

15 years ago | 0

| accepted

Answered
Random number in a file name, how to automate xlsread?
If you know the file name partially, you can do this. File=dir('name_21-Sep-2011-*.xls'); Hopefully, there is only one matched...

15 years ago | 1

| accepted

Answered
how to convert to 3d?
It's probably not "convert". If you don't have the third dimension, then it is a 2d plot. If you want to view it in 3d, you can ...

15 years ago | 0

| accepted

Answered
Is it possible to pass all variables of current workspace into a function without using 'load'
Based on your previous question, I sense you are going towards a direction which may not be the best approach. You've been able...

15 years ago | 1

| accepted

Answered
Using first input of a vector as figure title
You can't really do data = ['mytitle' 1 2 3 4 5] literally in MATLAB. data = {'mytitle' 1 2 3 4 5} figure(1) plot([data{2...

15 years ago | 0

| accepted

Answered
State space initial conditions
help lsim or doc lsim LSIM(SYS,U,T,X0) specifies the initial state vector X0 at time T(1) (for state-space models only)...

15 years ago | 0

Answered
how to amend an existing text file in a certain line and create new ones
When we manually edit a text file, we can go to a particular line, select the whole line, over-write it with some new text and t...

15 years ago | 0

| accepted

Answered
Need help for explanation of one command
This is the code Walter provided in your previous question. It's a different way to do zero-padding. Conventional Way: (assum...

15 years ago | 0

| accepted

Answered
optimisation agrithm
doc fmincon

15 years ago | 0

Answered
how to find intersection?
<http://www.mathworks.com/matlabcentral/fileexchange/17751-straight-line-and-plane-intersection>

15 years ago | 0

Load more