Answered
symbolic multiplication doubt in usage of * or .*
* for scalar multiplecation When you multiply a vector by a number, known scalar multiplication, example supoose vec=[1,3,5,6]...

6 years ago | 0

| accepted

Answered
If I have to create a number with a boolean matrix, is it possible to flip a column but still conserve it on its original position? How?
"is it possible to flip a column but still conserve it on its original position? How? No Any matrix elements positions are spe...

6 years ago | 0

| accepted

Answered
mod gives incorrect result
May be the issue with Largest number in Matlab, Experts can elaborate more in this case >> 146^23 ans = 6.0272e+49 If yo...

6 years ago | 0

Answered
Matlab placing loop results in array
arrayA=zeros(1,36); for buscombo=1:36 % Find result... arrayA(busloop)=result; end

6 years ago | 0

Answered
How do I get my matrix dimensions correct?
To run the code In ttank2 line (Issue with last part) (L-y) size must be equal to 1000x1 As >> length(L-y) ans = 101 ...

6 years ago | 0

Answered
why i get the undefined variable message?
and when i try to run this thing i get the message :undefined variable 's'. First: Because you did not defined N Second for S...

6 years ago | 0

| accepted

Answered
Image processing ''if input is logical (binary), it must be two-dimensional error "
bw = imbinarize(rgb2gray(K)); imshow(bw) Complete Code: I = imread('main.jpg'); figure(1), imshow(I) se = strel('disk',15);...

6 years ago | 3

| accepted

Answered
Finding similarity between 2 matrices
I have two matrices, of different sizes (say, 42*42 and 40 *40). I want a measure that could quantize the amount of similarity b...

6 years ago | 0

Answered
How to make line graph for Y vs X?
data=[2010.0 0.00990000 0.02200000 0.03760000 0.05240000 0.06350000 0.07810000 2020.0 0.02830...

6 years ago | 0

| accepted

Answered
how to find out how many columns have more than 50 elements which are greater than 1?
I currently have a matrix that's 100*100 size, and I wish to work out how many columns have more than 50 elements which are grea...

6 years ago | 0

| accepted

Answered
Undefined function 'read' for input arguments of type 'double'.
I assume that you have already dat file in your workspace data1=dat(1:100,:);

6 years ago | 0

| accepted

Answered
rand in matrix?
result=-min_value + (max_value+min_value)*rand(m,n); Example: %Let say range -0.6 to 0.8 and matrix size 5x4 result=-0.6 + (0...

6 years ago | 0

| accepted

Answered
Plotting a cell array on Matlab
Let say cell arry is cell_data for i=1:181 data=cell_data{i}; % Now data is first matrics of cell array % You can acess the...

6 years ago | 0

Answered
How can I find the value with the most change in my histogram?
More detail with example: data=[1 2 -4 5 6 0 5 20 10]; % Hist data is just simillar array diff_data=diff(data) idx=find(diff_...

6 years ago | 0

Answered
How to perform Sobel filter and HOG ?
How to perform Sobel filter and HOG ? Read Input image, say "I" Sobel, see detail here result=edge(I); HoG, see detail here...

6 years ago | 0

Answered
pyenv function not found
I'm running MATLAB 2018b You are using earlier MATLAB version. This function is Introduced in R2019b

6 years ago | 2

| accepted

Answered
making volume from multiple slices
result=cat(Depth_size,slice1,slice2,slice3....); Depth_size must be same as number of slices to be add Say 3 slices then res...

6 years ago | 1

| accepted

Answered
mixing 16 matrixs in 48 lines
After the code, you can add the following to extract the 3x6 sub 16 matrices from Q2ibar, and save them all in cell array mat, w...

6 years ago | 0

Answered
creating matrix from a vector
let's suppose I have this vector v=[0; 0; 4; 6] and I want to create a matrix such that X=[0,0,0; 0,0,0; 4,4,0; 6,6,6] %...

6 years ago | 0

Answered
How to solve this error?
Save the function file in different MATLAB script and ensure that filename must be same as function name, that is jcoMatrix.m ...

6 years ago | 0

| accepted

Answered
array of mean from array
One line with blockproc data=magic(400); result_mean=blockproc(data, [40 40], @(x) mean(x.data(:)));

6 years ago | 1

Answered
How do I get rid of these >> symbols when writing fprint?
fprintf('Average temperature during SF summer months is %.2f\n', avgSFSummer); or More New Line Gap fprintf('Average temperat...

6 years ago | 0

| accepted

Answered
Using if function for 'for statement'
X=0:0.1:3; % Define X as per requirements for i=1:length(X) if X(i)<0 break; else % do operation to ge...

6 years ago | 0

Answered
Shifted Stairstep graphs in a single figure
Is this? for j=1:100 stairs(j:j:100); hold on; end Or for j=1:100 stairs(j:j+1:100); hold on; end

6 years ago | 0

Answered
How Huffman Key is getting generated in this
How Huffman Key is getting generated in this? Is this? function [key] = keyGen(n) n = n*8; bin_x = zeros(n,1,'uint8'); r = ...

6 years ago | 0

Answered
Find the index value
>> array_data=2:3:30 array_data = 2 5 8 11 14 17 20 23 26 29 Case 1: I assumed you are look...

7 years ago | 0

| accepted

Answered
while loop question about the count
I am wonder how can I make e become a change number because when I running my code e is always equal 5 even I changed my enter n...

7 years ago | 0

Answered
how to extract the structure array from a cell array
Suppose you hace cell array data={ struc array1 struc array2 struc array3.....} If you want to extract struc array2 then.. re...

7 years ago | 0

| accepted

Answered
How to use the index of a matrix using Unique function to alter a second matrix?
how do I apply the index to make B = [ 1, 8, 13, 2] >> B=B(indx) B = 1 8 13 2 Code: A = [ 2 5 9 3 5 ...

7 years ago | 0

Answered
Plot mean as a green line width of 3
This? subplot (3,4,1),plot (y,'g','linewidth',3); I assumed y as a mean

7 years ago | 0

Load more