Respondida
how to add 3 matrices with one dimension same for all and other dimension different?
[rows,col_B]=size(B); [~,col_C]=size(C); result=zeros(rows,col_B*col_C); for i=1:col_B for j=1:col_C ...

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 2

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

más de 9 años hace | 0

| aceptada

Cargar más