답변 있음
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]...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

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

거의 7년 전 | 0

답변 있음
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 ...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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);...

거의 7년 전 | 3

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

| 수락됨

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

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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_...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

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

거의 7년 전 | 2

| 수락됨

답변 있음
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...

거의 7년 전 | 1

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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] %...

거의 7년 전 | 0

답변 있음
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 ...

거의 7년 전 | 0

| 수락됨

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

거의 7년 전 | 1

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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

거의 7년 전 | 0

답변 있음
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 = ...

거의 7년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

더 보기