Respondida
want a rows to split into multiple rows
I don't see why reshape() wouldn't work A = ones(1,90); A = reshape(A,3,30)

más de 4 años hace | 0

Respondida
How to keep roi points visible when replotting
Whenever you draw a new image with imshow(), and definitely when you clear the axes, the roi object gets deleted. You'll have t...

más de 4 años hace | 1

| aceptada

Pregunta


Guidelines for appropriate moderation?
This question is a bit twofold. I keep seeing "answers" like this: They tend to take one of two forms: Terse, often single-...

más de 4 años hace | 2 respuestas | 1

2

respuestas

Respondida
Zero out values ​​from a specific row in a matrix
Depends if you want before or after. Since there's no specified mechanism to determine which, I'm assuming they're separate cas...

más de 4 años hace | 0

| aceptada

Respondida
how to extract a value with a specific character out of an character array
I'm not sure which extra emails should be rejected. I'm going to assume that all other emails get rejected emails = {'someone,...

más de 4 años hace | 0

| aceptada

Respondida
Extract float from a filename
Well I guess this is one way. There are probably more elegant ways of unpacking the nested cell array and converting to numeric...

más de 4 años hace | 0

| aceptada

Respondida
How to replace letters with numbers in matrix
Here's one way: m = 'D2F1C2A3B2B1C2A1C2F2D2B3C3A2F1A2F1C1F2A1A1A3F1D1B2B1B2B2D3D1F1F3D2C2D3A1A2'; m2 = replace(m,{'A','B','C',...

más de 4 años hace | 0

Respondida
How can I remove the line for nan in my ploting
This is one way mdot = 115; % Source Strength g/s U = 6.82; % Wind speed m/s h = 80; % Stack Height (m) Sh = 20; % Plume Ri...

más de 4 años hace | 0

| aceptada

Respondida
Save figures in png format
This lists multiple methods to maximize a figure window. The suggestions depend on version and environment, so take note of tha...

más de 4 años hace | 0

Respondida
What is the reason while plotting sinc function in mathematical it is cutting at 0 why ? what is the difference
What do you mean "plotting ... in mathematical"? If you're just comparing the MATLAB sinc() function against sin(x)/x or sin(pi...

más de 4 años hace | 0

Respondida
How to dynamically create multiple column vectors?
How about something like this? M = 5; % Number or elements in each vector L = 1000; % Number of column vectors N = M+L; a ...

más de 4 años hace | 0

| aceptada

Respondida
Keep always on top
Similar to Jan's suggestion, you can always do the window management with ... your window management tools. Jan's recommendati...

más de 4 años hace | 1

Respondida
Define origin and length of the Strel function
No need for strel(). A = false(7); A(4,4) = true st1 = [1 1 1 0 0 ]; B1 = imdilate(A,st1) st2 = [0 0 1 1 1]; B2 = imdila...

más de 4 años hace | 0

| aceptada

Respondida
Convert vector loop to matrix loop
You mean like this? c = rand(1,900); x = zeros(100,900); y = x; for k = 1:99 x(k+1,:) = x(k,:) + 0.4*cos(20)/0.226*pi +...

más de 4 años hace | 0

| aceptada

Respondida
moving mean over 5 cells
Well yeah I imagine it's off by a factor of 1/5 ... because you're dividing the mean by 5.

más de 4 años hace | 0

Respondida
How to solve this, why is it giving an error?
It's not really clear what you're intending. What are your integration limits? If I assume that you're integrating over [-1....

más de 4 años hace | 0

Respondida
I am getting an error using interp1
Strip out all the multiply-defined points: color_1 = [0.7411, 0, 0.1490]; color_2 = [0.9412, 0.2314, 0.1255]; color_3 = [0.99...

más de 4 años hace | 0

| aceptada

Respondida
how to get common range between 20 intervals?
Finding a non-empty intersection is easy enough, so I'm going to concentrate on the latter part of the question. I'm sure there...

más de 4 años hace | 1

Respondida
How to fill array with value 0 if function returns empty []
I hardly ever use symbolic tools, so I'm sure someone knows a better way. Just paying attention to the output alone, this is on...

más de 4 años hace | 0

| aceptada

Respondida
Line colour and style
Without data, I'm just going to strip out everything that's irrelevant. This is a routine demonstration of the fact that lege...

más de 4 años hace | 0

Respondida
How to Crop and get SSIM Value apply on two images
If it's assumed that there is no scale or rotation transformation, then you can go ahead and try to align the images. load coi...

más de 4 años hace | 0

| aceptada

Respondida
Look up a value in an incomplete list
How about: keys = ["a", "b", "c", "d"]; vals = [1,2,3,4]; x = ["c", "d", "e"]; [~,y] = ismember(x,keys); y(y==0) = NaN

más de 4 años hace | 0

Respondida
How to concatenate 3D matrixes effectively/fast
... why not just concatenate them? ntables=10 nlines=10 ncolumns1=10 ncolumns2=15 ncolumns3=20 ncolumns4=25 ncolumns5=30 ...

más de 4 años hace | 0

| aceptada

Respondida
using a viridis colormap
Use scatter() instead of plot(). The behavior of viridis() is otherwise the same as the built-in functions like jet(). N = 20;...

más de 4 años hace | 1

Respondida
Intercept of each line to y-line
Consider the example: Data=[ 0.11 0.3 0.28 0.6 0.31 0.23 0.78 0.57 1.08 0.43 0.26 0.95 0.84 1.25 0.46 0.55 ...

más de 4 años hace | 0

Respondida
Using regexp to extract data
You haven't clearly stated what you want it to match and not match. I'm going to assume that you want it to match "n1" follow...

más de 4 años hace | 0

Respondida
How to change color of graph after a certain temperature in GUI while live recording
What exactly does the plotting routine currently look like? Without knowing, I'm going to assume you're just plotting unconne...

más de 4 años hace | 0

Respondida
Block sub diagonals matrix
If my interpretation is correct, this should be one method: bksize = [2 2]; % smaller for example A = ones(bksize); B = 11*...

más de 4 años hace | 0

| aceptada

Respondida
create variables' name in pattern
If your files may vary in size/depth/class, use a loop to read them into a cell array instead. If you create a bunch of named...

más de 4 años hace | 0

| aceptada

Respondida
How to draw a ball by plot3?
I choose to assume that a request to plot a solid volume with a line/point plotting tool should suggest that the usage of the te...

más de 4 años hace | 1

| aceptada

Cargar más