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

oltre 7 anni fa | 1

| accettato

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 1

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 1

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 1

| accettato

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 1

| accettato

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 1

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 1

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 1

| accettato

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 0

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 1

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

oltre 7 anni fa | 2

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

oltre 7 anni fa | 0

| accettato

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

oltre 7 anni fa | 1

Carica altro