Answered
Tranfering excel to mat
i can think of 1 way, but it can be quite annoying. you use <https://de.mathworks.com/help/matlab/ref/textscan.html textscan>...

8 years ago | 1

| accepted

Answered
How can I get new plot on the same axes when the user put the new input and presses push button?
if you use hold on every next (new) plot will added to the old plot, so both/ all plots will be shown. to deactivate...

8 years ago | 0

| accepted

Answered
IF CONDITION NOT WORKING
you should add what your code is supposed to do (especially what snna is/ when shall the condition be fullfilled) if you comp...

8 years ago | 1

Answered
How I can obtain the numerical values of a symbolic results?
of you have a symbolic expression use double (a is of class sym) a=double(a)

8 years ago | 0

Answered
Geographical coordinates on the sphere
i guess your classmate asked this question some days before: <http://de.mathworks.com/matlabcentral/answers/320878-distance-b...

8 years ago | 0

Answered
Problem to display a matrix?
here is whats gone wrong: k=1:length(mx) j=1:length(mx) length(mx) = 1 since mx = 40, maybe cancel length but even...

8 years ago | 1

Answered
Why I have the error message : Subscript indices must either be real positive integers or logicals.
its pretty simple. In your testprogramm you saved erf(x1) in erf1. in your programm you overwrite erf: erf=erf(x) so tha...

8 years ago | 0

| accepted

Answered
symsum returning a large fraction
SUM may be of class sym, try SUM=double(SUM)

8 years ago | 0

| accepted

Answered
Labels out of the box in figures
Hi, you can access the properties of the axis and change the fontsizes (there are lots off/ + multipliers) <https://de.mathw...

8 years ago | 0

Answered
How to read multiple jpg images in matlab
you can use a for loop and save the image data in a cell: replace png by the file type of your images. result will be a 1x250...

8 years ago | 1

| accepted

Answered
Call elements for a cell array
Hi, with {n} you get access to the nth element >> a={[1 2] , 'abcdefg', randn(4)} a = 1×3 cell array [1×2...

8 years ago | 0

Answered
Matrix manipulation and replacements
there is an easy solution if the matrices have the same size, so you coule just crewate a new matrix C which is A(Irow,Jcol) ...

8 years ago | 0

| accepted

Answered
Wie Bestimme ich ein t-Wert bei dem als erstes der Wert y2=-0.5) unterschritten wird numerisch ?
Hi, der Grund warum du eine leere Menge erhälst ist, dass find einen Wert in deinem Vector y2 sucht, der genau -0.5 ist. Ist ...

8 years ago | 1

| accepted

Answered
If A is a 3x4 matrix, how do you find B if B=A(1:2)?
Hi Nate, you have to be carefull by calling the contents of a matrix: >> A=[1 2 3 4; 5 6 7 8; 9 10 11 12] A = ...

8 years ago | 0

| accepted

Answered
Error using load Number of columns on line 2 of ASCII file
matlab tries to create a matrix with 2 rows. obviously your second row has more or less colums than the first row, so your matri...

8 years ago | 1

Answered
How do we replacing empty or (NaN) cells with 0's in Matlab?
A(isnan(A))=0 % turns every NaN to zeros to "delete" a row set the row =[] if A(i,:)==0 A(i,:)=[] you c...

8 years ago | 0

Answered
>>root([1 -1 -2]) for a polynomial is not working.
the first error results in a spelling mistake: you typed root instead of roots, the second works fine: >> c = [3 -2 1 2 ...

8 years ago | 0

Answered
How do I make a cell with the following contents?
if i understood you right your problem is in one of the following lines: frames={x(1:end) x(2:end) x(3:end) y(1:end) y(2:en...

8 years ago | 1

Answered
Undefined Function ,,,,, for input arguments of type 'char'
i run your code, and i did not get any error message s = input('Student Number: ', 's'); [Login] = ValidSN(s); disp...

8 years ago | 0

| accepted

Answered
Can you put a switch statement within an IF statement?
all off them work but not as you expect them to i suppose A and B are matrices... check the output of A<B and when it is "...

8 years ago | 0

Answered
how to fix error in selecting minimum value from iteration matrix?
concerning your problem with the minimum: check <https://de.mathworks.com/help/matlab/ref/min.html min> you can either use...

8 years ago | 1

| accepted

Answered
How do I go about plotting this function in MATLAB?
Hi Paul, first of all, there is no need to use syms if you just want to create a function. you can use function handle an...

8 years ago | 0

Answered
Solve an eqution in matlab
D(t)=R_t <=> D(t)-R_t=0 use <https://de.mathworks.com/help/matlab/ref/fzero.html fzero> tSolution=fzero(D(t)-R_t,0)...

8 years ago | 0

| accepted

Answered
I have a matrix column with a number in each row, but they are not consecutive (per example, from 3 it jumps to 6). How can I turn them into a consecutive order?
depending on what you really mean by "sorting" and "consecutive", here are 2 different solutions: A=randi(10,12,4) A = ...

8 years ago | 0

Answered
how to draw line between points in Matlab
if you want lines between the points you have to save the data in vectors and plot the vectors, not single points i changed s...

8 years ago | 0

| accepted

Answered
while loop in while loop
As walter said try to replace te=toc; while te<0.01 te=toc; end toc; With te=toc if te...

8 years ago | 0

| accepted

Answered
Using GUI, use one push button as an image browser and another to process the image that was chosen?
there are several ways. if you are using guide, you could just use the handlea structur and save the image within handles: ...

8 years ago | 1

Answered
Checking if inserted text has numbers
in my opinion the easiest way would be all(isletter(expressionString)) >> all(isletter('haj%kj')) ans = logical 0 ...

8 years ago | 2

Answered
how to get current running time in a stateflow , ?
if i did not missread u asked first for current time... running time: <https://de.mathworks.com/help/matlab/ref/tic.html tic ...

8 years ago | 0

| accepted

Answered
calling a function: "undefined function or variable 'abc'"
Hi, if you type a = add_white_noise(Argument1, Argument2) the output will be saved within the variable named a. i gu...

8 years ago | 1

Load more