回答済み
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 =...

10年弱 前 | 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

10年弱 前 | 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...

10年弱 前 | 0

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

10年弱 前 | 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?

10年弱 前 | 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...

10年弱 前 | 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 ...

10年弱 前 | 0

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

10年弱 前 | 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...

10年弱 前 | 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); ...

10年弱 前 | 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...

10年弱 前 | 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 = ...

10年弱 前 | 1

| 採用済み

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

10年弱 前 | 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(...

10年弱 前 | 0

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

10年弱 前 | 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...

10年弱 前 | 2

回答済み
How to read map of RGB image by using imread?
If the value is empty, the image is not in a mapped format, i.e., RGB values are stored for each pixel (true color format), not ...

10年弱 前 | 0

回答済み
Matlab to extract the n th diagonals in a Matrix
d = [2 4]; A(sub2ind(size(A), d, d))

10年弱 前 | 1

| 採用済み

回答済み
For loop not starting at 1
If you set Max(7) = something, values Max(1) til Max(6) are set to zero if Max does not exists, or it keeps the values in Max(1)...

10年弱 前 | 0

| 採用済み

回答済み
draw all line between nodes
Simple as line(X, Y)

10年弱 前 | 0

回答済み
Display progression while reading a large tiff/image file
No, I don't think so. Waitbar needs a fraction of the total processing time, and you cannot implant this function into a build i...

10年弱 前 | 0

| 採用済み

回答済み
Advantages and workarounds for using a main function for a project?
You're right: If use use build-in commands or Matlab function as your variable name, such as 'gamma', something strange happens:...

10年弱 前 | 0

回答済み
why does text change color when using saveas() or print()?
http://de.mathworks.com/help/matlab/creating_plots/save-figure-preserving-background-color.html

10年弱 前 | 0

| 採用済み

回答済み
Draw sphere with slats
function hemispherewithstripes clf Nstripes = 12; stripecolor = 'r'; Nhemicircles = 2*Nstripes; r =...

10年弱 前 | 0

| 採用済み

回答済み
Question about for loops and immultiply
A fast method to create a white square is Z(800,600)= 0; Z(275:325, 375:425) = 1;

10年弱 前 | 0

| 採用済み

回答済み
Write a function (Not a built-in function) that converts a given number n in base 2 to base 10
There is a nice oneliner that solves the problem: base10 = 2.^(numel(n)-1:-1:0)*n(:); If you use it, your task is to und...

10年弱 前 | 0

回答済み
Is it possible to define the marker size of a rectangle (length/width)?
A rectangle is not among the markers. You have to draw it manually.

10年弱 前 | 0

| 採用済み

回答済み
Move file into folder
Use the functional syntax of print to print directly to the dir print('-dpng', fullfile(newdir, ['Slice_' num2str(i) '.png'...

10年弱 前 | 0

回答済み
angdiff doesn't work as documented
Have a look which angdiff you use which angdiff it may be function different from the angdiff in the Robotics Toolbox.

10年弱 前 | 0

回答済み
calling the function dynamically - is it possible using eval or evalin
If you just have three functions, it's best to use [a,b,c] = data_sum(d,e) [a,b,c] = data_multiply(d,e) [a,b,c] = dat...

10年弱 前 | 0

さらに読み込む