已回答
how to draw a checkerboard with 9 squares each with 0.5 dimension?
You cannot create an image with pixels of dimension 0.5. The dimension of a pixel is always 1. Or what do you mean by 'with dim...

8 years 前 | 0

已回答
Clear figure content using clf
If you have open a new figure, it is cleared anyway. So there is no difference between figure(); plot() and figure(...

8 years 前 | 1

| 已接受

已回答
Want to plot a matrix as a 3D histogram or bar chart.
A = rand(9,10); % sample values bar3(A)

8 years 前 | 0

已回答
Generate a vector X of 100 independent samples from Gaussian distribution
X = sqrt(3)*randn(100, 1) + 5;

8 years 前 | 0

| 已接受

已回答
How to declare a pointer to a pointer array?
Hm. I think it would be best to use genuine Matlab to solve your problem, instead of fiddling with pointers. I'd like to do that...

8 years 前 | 0

已回答
How to alter the x axis?
Are you sure you mean 10e10 and not 1e10? Otherwise, setting the axes is quite straight forward: y = linspace(200, 10e10); ...

8 years 前 | 0

已回答
Access variables in several .mat files
matfile = {'mymatfile1.mat', 'mymatfile2.mat', 'mymatfile3.mat', 'mymatfile4.mat'}; RW(16000,20,4) = 0; % preallocate f...

8 years 前 | 1

已回答
Save values in a loop in a vector
I found it a bit hard to understand what your are looking for. As far as I understood, this can solve your problem: p = [1...

8 years 前 | 0

已回答
Comparing two matrices and obtain the un-repeated rows ?
A(~ismember(A, B, 'rows'), :)

8 years 前 | 0

| 已接受

已回答
recursion-Arkermann function- code run but have wrong answer
You use a wrong definition of the Ackermann function. Must read: A(m − 1, 1) if m > 0 and n = 0(!!!);

8 years 前 | 0

| 已接受

已回答
Hello I am having trouble plotting this convolution. my error is "Vectors must be the same length."
Use conv for convolution. cov computes the covariance matrix.

8 years 前 | 1

已回答
how do I delete pre-existing jobs in parpool from remote cluster
Have you tried to exit Matlab and start over?

8 years 前 | 0

已回答
confusion matrix in matlab
The ROC framework is for binary classification tasks. And you need a continuous valued output of the classifier, corresponding t...

8 years 前 | 0

已回答
rewrite my loop - whats wrong with that loop ?
I think you can rewrite your code as follows: if dir1 == 1 addr = ADDR1; val = 1; else addr = N_SM - ADDR1; v...

8 years 前 | 0

| 已接受

已回答
Hello, please help me with and advice about conditional statement
I would program it like this % compute Q1 with formula 1 ... Q1 = ... % compute Q2 with formula 2 ... Q2 =...

8 years 前 | 0

已回答
How to convert arrayfun to for loop
count = 27; Length = 1:count; for n = 0:count-1 Array(n+1,:) = circshift(Length, [0, -n]); end

8 years 前 | 0

| 已接受

已回答
sort a one dimensional array ascend and descend
It is consistent behaviour: You explicitly ask to sort a 1xn vector along the first dimension. I think it would be nice if Matla...

8 years 前 | 0

已回答
Creating a cell structure from directory file names
datedir = dir('directorygoeshere'); filenames = {datedir.name}:

8 years 前 | 6

已回答
How to plot a histogram from 0-255
I = imread('cameraman.tif'); imhist(I) shows values from 0 to 255. Do you change I after imread and before imhist?

8 years 前 | 0

| 已接受

已回答
help me to find two consecutive differentiation with respect to x?
If I remember my high-school algebra correctly, it's q = 3*(1-cos(pi*x/10))= 3 - 3*cos(pi/10*x) dq/dx = 3*sin(pi/10*x)*p...

8 years 前 | 1

| 已接受

已回答
Can I convert long binary strings into unique serial numbers of much shorter length?
You said that you generate the numbers, but you do not mention any constraints on the generation. Without any constraints, just ...

8 years 前 | 0

已回答
Running exe files in Linux
Try system(strcat('sim/CySim_solver sim/CySim', ' > out'))

8 years 前 | 0

已回答
Keep SURF features from many images
The most general form is [features{i}, valid_points{i}] = extractFeatures(a, points); if features is just a single numbe...

8 years 前 | 1

| 已接受

已回答
How do I construct a vector of complex numbers whose absolute value is not above 1?
You can generate a vector of complex number where the maximum absolute value is always 1: C = rand(1,10) + 1i*rand(1,10); ...

8 years 前 | 2

| 已接受

已回答
Index exceeds matrix dimensions.
What's the size of the A you read? It's probably less than 192. You can check using A = fscanf(f,'%g',[1 inf]); si...

8 years 前 | 0

已回答
Importing matlab data in a loop using keywords from a cell
a1 = {'K01 mainEEG.mat','K02 mainEEG.mat','K03 mainEEG.mat', 'K04 mainEEG.mat', 'K05 mainEEG.mat', 'K06 mainEEG.mat'} a2 = ...

8 years 前 | 1

| 已接受

已回答
How to save to different column array
Y(:, all(isnan(Y))) = [];

8 years 前 | 0

已回答
How can I remove left y-axis tick marks from the right y-axis, AND retain the top x-axis with MatLab 2015a?
So what's wrong with x=[1:100].';y=randn(100,1); % some dummy data to plot to make axes w/ differing ranges hAx=plotyy(...

8 years 前 | 0

已回答
how to get data of one image in a Matrix of images
X = abs(gaborResult{5,5});

8 years 前 | 0

| 已接受

已回答
My rectangle should have a determined color represented by a value
50 and 75 are not valid colorvalues in Matlab. Valid is an RGB triplet in the range [0, 1]. So I assumed that 50 and 75 is an in...

8 years 前 | 2

加载更多