Question

how to create function without having to use all the inputs in the script

i have a function with many inputs how can i write this function so i would not have to fill all the inputs? for example now i...

5 years ago | 2 answers | 0

Answered

how to save gif animation with white or transparent background?

is it even possible?

how to save gif animation with white or transparent background?

is it even possible?

5 years ago | 0

Question

how to save gif animation with white or transparent background?

when i save gif as you can see in this code: https://dl.dropboxusercontent.com/u/38094905/Shape_animation_script.m the bac...

5 years ago | 2 answers | 0

Question

svd prescision is very bad.

it appears to be that when i use SVD i loose prescision how can i avoid loosing prescision and use svd function? [U,S,V]=s...

5 years ago | 2 answers | 0

Question

how to turn elements in matrix to 0?

i have this matrix: <</matlabcentral/answers/uploaded_files/19154/Screenshot%202014-10-08%2020.25.06.png>> arround this ...

5 years ago | 2 answers | 0

Question

how to avoid crashing the computer while running heavy scripts?

sometimes when i run a heavy calculation with huge Matrics the computer start to run slowly if i need to stop the program i usua...

5 years ago | 1 answer | 0

Question

how to read CSV file in matlab while ignoring the first line

hi i have this csv file with one header that i dont need and two columns of numbser that i need: <https://www.dropbox.com/s/oq...

5 years ago | 2 answers | 0

Question

how to save multidimantional matrix as structure?

how to save multidimantional matrix as structure? i get this error: >> save('filename','H') Index exceeds matrix dimens...

5 years ago | 0 answers | 0

Question

acces indexes of Multidimensional arrays while using index of elements in a vector?

i have a vector called L the vector contain indexes also i need to use those indexes while writing the totl matrix MAT(L) in...

5 years ago | 1 answer | 0

Question

trying to rearange a matrix with 2 vectors of indexes and one vector of values

i have 2 vectors of rows and columns location in the destination matrix and one vector E where all the values are located, and...

5 years ago | 1 answer | 0

Question

how to read text file and to ignore the first 10 rows and to take only the 4rth and 5th columns?

how to read text file and to ignore the first 10 rows and to take only the 4rth and 5th columns? from this file: http://iopsci...

5 years ago | 2 answers | 0

Question

decresing decimal point of integer

how can i do this? i have this number: 1.23484057 and i only need it to be 1.23

5 years ago | 1 answer | 0

Question

values of randi function repeat themselves

while using the function randi that generate random integers uniformly disterbuted i sometimes get in the output vector the same...

5 years ago | 1 answer | 0

Question

how to set the ticks in the colorbar to be automatic and as many as possible?

i'm trying to use as many ticks in the colorbar doing so manualy lead to unexpected resault such as: <</matlabcentral/answe...

5 years ago | 1 answer | 0

Question

how to change the font size in a plot (only for the axes numbers)?

as you can see in the attached image i need to change only the size of the numbers not the title or the colorbar how can i do ...

5 years ago | 2 answers | 0

Question

how to round up and down?

i have the folowing matrix ans = 0 0 0 0 -0.2500 0 0 0 0....

5 years ago | 1 answer | 0

Question

how to sum matrics inside a cell array?

i have 4 matrics inside a cell and i need to sum them all currenyly i use this: R=R{1}+R{2}+R{3}+R{4} the original R is...

5 years ago | 1 answer | 0

Question

how to sum matrics inside a cell array?

i have 4 matrics inside a cell and i need to sum them all currenyly i use this: R=R{1}+R{2}+R{3}+R{4} the original R is...

5 years ago | 3 answers | 0

Question

why imagesc display the matrix in black and white?

during a calculation of a complex matrix inside exp function i recived the following resault as seen in the attached image below...

5 years ago | 1 answer | 0

Question

how to identify if array is a string?

i need to identify if array is a string i tried to use a=whos(A) any suggestion?

5 years ago | 1 answer | 0

Question

what is the difference between inv() and \ (the backslash) ?

what is the difference between those functions and which one is more precise? sometimes matlab show warning while using the ...

5 years ago | 2 answers | 2

Question

how to identify a 3d matrix?

by using the function: MAT=imread('image.jpg'); sometimes (if the image isn't in grayscale) i get output of 3D matrix (R...

5 years ago | 2 answers | 0

Question

how to change one part of the string to NOT italic font?

i have this code: xlhand = get(gca,'xlabel');set(xlhand,'string','string and not italic',... 'fontsize',15,'Font...

5 years ago | 1 answer | 0

Question

problem of Accuracy in vectors

when i try to create a vector using (for example): x=0:0.5000000001:3 x = 0 0.5000 1.0000 1...

5 years ago | 2 answers | 0

Question

i need to change a mathematical formula inside a function from a script

hi, i need to change a mathematical formula inside a function from a script. i think i shuld use a syms, so far i haven't real...

5 years ago | 1 answer | 0

Question

is there another data type other then double/single/uint with less memory requirements?

i have a problem with big matrics (20e3 by 20e3) currently they take too much ram, i guess that the problem has something to do ...

5 years ago | 1 answer | 0

Question

Undefined function 'exp' for input arguments of type 'uint8'

because i use a big variables (matrics in the size of 20e3 by 20e3), i found that by changing the variables to uint8 for exampl...

5 years ago | 1 answer | 0

Answered

Symbolic math- substitute a derivative function with subs()?

why don't you sub one char at a time?

Symbolic math- substitute a derivative function with subs()?

why don't you sub one char at a time?

5 years ago | 0

Question

trying to minimize the memory of a matrix with sparse

the meaning of the sparse function is to reduce memory usage by ignoring the zero elements inside a matrix, for some reason when...

5 years ago | 2 answers | 0

Answered

help using sparse matrix

i don't get it the resault is not as i expected: >> a=[1,2,3;4,5e-12,0;9,8,7] a = 1.0000 2.0000 3.0000 ...

help using sparse matrix

i don't get it the resault is not as i expected: >> a=[1,2,3;4,5e-12,0;9,8,7] a = 1.0000 2.0000 3.0000 ...

5 years ago | 0