matlab questions

matlab questions

  • All Sites

0 answers

Speeding up reading JPEG2000 images using Python

I am trying to read JPEG2000 images which are roughly 86kB (size = (4096,21504)) using Python. I used skimage and pillow modules to read them. The time it takes to read either of these files is ~1s. ...

1 answer

Quantization Image using MATLAB

I'm trying to quantize an image 8 bits to 4 or 2-bits uniformly. I searched internet, interestingly I could not find what I want exactly. Then I wrote an simple code for it myself. I'm curious about ...

0 answers

Optimization of multivariable function In Matlab

I have a function fun(x,y,z), such that say, x=1:10, y=50:60, z=100:105. Which optimization method (and how) I can use to get the minimum of this function, for example, where (x,y,z)=(3,52,101). I am ...

2 answers

How to solve the .mat file sorting?

I have three .mat files, A.mat, B.mat and C.mat. And the content of the .mat files look like this: ![enter image description here][1] It is in r2 = [rs2,cs2,sortedValues2] format. How can I sort ...

2 answers | 8 mins ago by user3761566 on Stack Overflow stackoverflow.com
0 answers

how to get the difference between two probability maps?

I have two probability maps,they look like this: ![enter image description here][1] ![enter image description here][2] How can I get the difference between the two probability maps, there should ...

1 answer

How to we convert a cell array which is in a struct array into a table

I have a structured array (1*1502) named summary in which there is a cell array with field names results that has the following data: [1,114,3,170686,1990;2,74,13,5668167,1997] ...

1 answers | 9 mins ago by Nits Seebah on Stack Overflow stackoverflow.com
1 answer

how to get unique array value in matlab?

I have array value like this snippet bellow: a = { [1 2 4]; [3 5 6 7]; [1 2 4]; [3 5 6 7]; [8 9]; []}; I am trying matlab to get array value like this a = { [1 2 4]; [3 5 6 7];[8 9]};

2 answers

Issue when generate random vectors with limits on matlab

I have a problem, I want to generate a table of 4 columns and 1 line, and with integers in the range 0 to 9, without repeating and are random each time it is run. arrives to this, but I have a ...

2 answers | 10 mins ago by user3571227 on Stack Overflow stackoverflow.com
1 answer

Plotting bisect method in matlab

So I had a problem in which I needed to find roots using the bisect method: Function: function [ c,k ] = bisect(f,a,b,tol) k=0; while b-a > tol c=(a+b)/2; if sign(f(c)) == sign(f(b)) ...

1 answers | 12 mins ago by Ryan Sayles on Stack Overflow stackoverflow.com
0 answers

read multiple sheets from excel in a one shot in matlab

Is it possible to read multiple sheets from a single excel file in a single shot in matlab? I have a 80 sheets in a excel file, to read these sheets I have to execute xlsread commands eighty times. ...

1 answer

How to save string into a text file by using Matlab?

I have a string, it shows as follow: Str = '+1 3:0.045 7:1.726 8:0.63' My question is how to save the string into a text file by using Matlab. Thanks a lot!!

1 answers | 14 mins ago by Peter Li on Stack Overflow stackoverflow.com
1 answer

How to make two matrices intersect with each other?

I have two cell matrices A and B, the size of which are both 10*1 cell matrix. For A, it looks like:{A1;A2;A3;...A10}. For B, it looks like:{B1;B2;B3;...B10}. Ai and Bi are both 1*200 double ...

1 answers | 14 mins ago by Peter Li on Stack Overflow stackoverflow.com
0 answers

Function definitions are not permitted in this context ,

i have been getting this error for quite a long time , tried to go through the stuffs on internet regarding its solution but even after following those instruction could not manage to make the code ...

0 answers

How to resize an EPS file with free software or command line utility

I use Matlab to generate .eps files. I would like to resize these files so they render at a different size than they are generated. I would like to specify the resized dimensions in inches or ...

1 answer

MATLAB- Function definition

How can i plot a function that has different definitions in different time intervals in MATLAB? For example function is equal to t plus 1 for t in interval minus 1 to zero and equals t in interval ...

1 answers | 15 mins ago by ROGER on Stack Overflow stackoverflow.com
1 answer

How to recover the original locations of deleted elements?

I have a data matrix A, the size of which is 4*20 (4 rows, 20 columns). The matrix A is generated by A = randn (4, 20). In the first iteration, I delete columns [2,3] of matrix A. Then matrix A ...

1 answers | 15 mins ago by Peter Li on Stack Overflow stackoverflow.com
1 answer

Time invariance in matlab

How can I write a MATLAB program that takes the given system described in terms input x(t) and output y(t) relations is input and finds out whether it is time-invariant or not?

1 answers | 16 mins ago by ROGER on Stack Overflow stackoverflow.com
1 answer

License error manager-4

How to resolve this error? Whenever i am using 'syms' it shows this error:- "Error using sym License checkout failed. License Manager Error -4 Maximum number of users for Symbolic_Toolbox reached. ...

1 answers | 17 mins ago by ROGER on Stack Overflow stackoverflow.com
2 answers

What is the purpose of the for iteration in the code?

I have a small code like this. Can anyone tell me what is the purpose of the for iteration? I can see the result difference before and after the for iteration, I just cannot understand what is the ...

2 answers | 17 mins ago by Peter Li on Stack Overflow stackoverflow.com
1 answer

How to call MATLAB from the command line several times, using the same MATLAB instance every time

I have a .m script that is called from the Windows command line (aka or prompt), and I call this script with different arguments several times (50+) a day. I tried using the matlab -r "run script.m" ...

1 answers | 17 mins ago by mlanderdahl on Stack Overflow stackoverflow.com
1 answer

Inverse transform image in matlab

I am using this code to translate an image but when I apply inverse on the image it did not show the whole image it shows only transformed image. tran= [1 0 0; 0 1 0; -130 -100 1]; traninv= [1 0 0; 0 ...

1 answer

optimize the function in MATLAB

I have tried many times taking different initial values of c. I did not get optimum values of c using function fminsearch. I have found more error between simulated and measured values of sigma. ...

0 answers

How to plot weighted Voronoi diagram in Matlab or R?

I'm new to programming and do not understand how to translate the algorithms from papers to computer codes. I'm looking into plotting meditatively or multiplicatively weighted Voronoi diagrams, ...

2 answers

How to combine Cygwin and Matlab to run this toolbox?

I want to run this toolbox from this website: http://www.princeton.edu/~fpereira/searchmight/. I choose to download “Linux(64 bit)” . I am not familiar with Linux and also I do not know how to combine ...

2 answers | 19 mins ago by Peter Li on Stack Overflow stackoverflow.com
0 answers

almost blank subframe implementation in HetNet

Does anyone have any idea, how to implement Almost Blank Subframe(ABS) in MATLAB for Heterogeneous Network?I have one Macro and one Pico environment.

1 answer

sub plotting odes15 MATLAB

I am trying to practice for a final coming up and I was given an old question and I am having trouble with the odes15 and sub plotting. I tried using the examples given on the MATLAB main website but ...

1 answers | 20 mins ago by Stan-Lee on Stack Overflow stackoverflow.com
2 answers

'Explicit integral could not be found', integration including gamma function

I am getting a well-known error of "Explicit integral could not be found" if I try to evaluate following integral syms x funx = (cos(x)^(1/3))*cos(x); I=int(funx,x,0,pi/2); I get the warning: ...

2 answers | 21 mins ago by Vinícius Rabelo on Stack Overflow stackoverflow.com
1 answer

s-function as a bus selector

i need an idea how to make an s-function behave as a bus selector. i have an structure being given as a input to an s-function . this structure has 283 elements (maybe more in future) and is being ...

1 answer

Matlab - Machine Learning?

In my research progress, I have separated the parasite from the image now. the parasite looks like a worm. I want the MATLAB to read all the input images, look for the worm like dark purple image and ...

2 answers

Matlab: how to plot the solutions against a specific x value if the solutions represented as a vector

I solved a nonlinear ODE in 2D spatial domain (x-y) using pdenonlin solver. How can I plot the solutions as a function of y at specific x value (say x=0.4)? Thanks c = 1; a = 0; f = char('u'); d = ...

2 answers | 24 mins ago by Fehaid on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3