回答済み
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>...

約7年 前 | 1

| 採用済み

回答済み
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...

約7年 前 | 0

| 採用済み

回答済み
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...

約7年 前 | 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)

約7年 前 | 0

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

約7年 前 | 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...

約7年 前 | 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...

約7年 前 | 0

| 採用済み

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

約7年 前 | 0

| 採用済み

回答済み
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...

約7年 前 | 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...

約7年 前 | 1

| 採用済み

回答済み
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...

約7年 前 | 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) ...

約7年 前 | 0

| 採用済み

回答済み
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 ...

約7年 前 | 1

| 採用済み

回答済み
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 = ...

約7年 前 | 0

| 採用済み

回答済み
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...

約7年 前 | 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...

約7年 前 | 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 ...

約7年 前 | 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...

約7年 前 | 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...

約7年 前 | 0

| 採用済み

回答済み
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 "...

約7年 前 | 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...

約7年 前 | 1

| 採用済み

回答済み
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...

約7年 前 | 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)...

約7年 前 | 0

| 採用済み

回答済み
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 = ...

約7年 前 | 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...

約7年 前 | 0

| 採用済み

回答済み
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...

約7年 前 | 0

| 採用済み

回答済み
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: ...

約7年 前 | 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 ...

約7年 前 | 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 ...

約7年 前 | 0

| 採用済み

回答済み
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...

約7年 前 | 1

さらに読み込む