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

mehr als 4 Jahre ago | 1

| accepted

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 1

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)

mehr als 4 Jahre ago | 0

Geographical coordinates on the sphere

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 1

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 1

| accepted

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 1

| accepted

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 1

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 1

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 1

| accepted

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 0

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 0

| accepted

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

mehr als 4 Jahre ago | 1

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

mehr als 4 Jahre ago | 2

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

mehr als 4 Jahre ago | 0

| accepted