已回答
How can i import numerical data from non-tabular text file in MAtLAB?
fid=fopen('test.txt'); C=textscan(fid,'%s%s%s%s%s%s%s%s','delimiter','\n'); % read each line in string format fclose(fid...

11 years 前 | 1

已回答
How can i import numerical data from non-tabular text file in MAtLAB?
If test.txt is your txt file, the following code will create a cell C whose cell contains your data ( all of it ). You can itera...

11 years 前 | 1

| 已接受

已回答
what is the problem of my 'for loop' in a matrix?
You are using a struct as input variable for _isnan_ function. This _isnsn_ does not work with structs. Follow your code upwar...

11 years 前 | 0

| 已接受

已回答
Elementwise multiplication, function definition
Hi, try your code like this: [x, y] = meshgrid( linspace(0,400,400),linspace(0,30000,400) ); A1 = -8.269000000000000; ...

11 years 前 | 0

已回答
if i resize an image is there any possibility is there to loss any information in the original image?
Once you resize the image, obviously, you have to pay the price, and it comes to information. You'll be loosing pixels, since th...

11 years 前 | 0

| 已接受

已回答
Saving Plots to a Folder with the Title Name
name = 'my_name'; for k = 1:3 name_2 = strcat(name,num2str(k)); h=figure; plot(x(k),y(k)); % your data ther...

11 years 前 | 1

| 已接受

已回答
Displaying images in the axes of GUI
When showing the images, set the 'Parent' property of the imshow function to the handle of the axis. Ex: if you have axes tagge...

11 years 前 | 2

已回答
Problem plotting a 3-D function
Well, I think you are having a scale issue. Your z1 is right, and the way to plot your data as well is right, but bear in mind t...

11 years 前 | 0

已回答
Problem plotting a 3-D function
try to hold on the current figure and change your point of view: % Define the input grid clc, clear, close all [x, y]...

11 years 前 | 1

已回答
how to access Cell data
my_cell = cell(10,1); % write into a cell for k=1:size(my_cell,1) my_cell{k,1} = rand; end % read the c...

11 years 前 | 0

| 已接受

已回答
I want to add grid on my image in matlab GUI
Image Analyst is right. I simplified the code to this: I = imread('cameraman.tif'); imshow(I) hold on M = size(I,...

11 years 前 | 1

已回答
Displaying the size of cell array
The number of elements in _Template_ is small enough as to show them all. In case of _Records_, the numbers of elements is too b...

11 years 前 | 0

| 已接受

已回答
I want to add grid on my image in matlab GUI
You get a vertical line because you are plotting a vertical line. The values of both elements of your x array are the same ...

11 years 前 | 0

已回答
How to work on "for loop" to save different column variable values to single vector?
for i=1:4 VEd(k) = [Ed1(i) Ed2(i) Ed3(i) Ed4(i) Ed5(i) Ed6(i) Ed7(i) Ed8(i) Ed9(i) Ed10(i) Ed11(i) Ed12(i) Ed13(i) Ed14(i...

11 years 前 | 0

已回答
I have a mx3 matrix which is string format, I'm assigning this matrix by set(handles.listbox, 'String', matrix) into the listbox. How can I change space between the columns?
It would be clearer if you gave some extended code. If you have string data, you can add some blank spaces using horzcat(): ...

11 years 前 | 0

已回答
How to display result
Use the {}Code option, please, that would help a lot in telling code from comment. Did you try figure(2) before disp...

11 years 前 | 0

已回答
How to Create a tool so that with a click of a button the Image gets segmented
Create a GUI with the GUIDE tool help guide will tell you more. Once you create a simple GUI with a button or whatever...

11 years 前 | 0

已回答
Send SERIAL commands from MATLAB GUI to Arduino
I would delete the while.serial from arduino code and do it as: void loop() { if (Serial.available()>0) ...

11 years 前 | 0

| 已接受

已回答
Send SERIAL commands from MATLAB GUI to Arduino
Hello, the problem is not what Arduino sends to your PC serial port, but how you try to read it. What Matlab function are you us...

11 years 前 | 0

已回答
Importing a foler of CSV files into matlab
Are your CSVs in the working directory? my_csvs = dir('*.CSV') should return a struct array with a field called "name", hosting...

11 years 前 | 0

已回答
why code using parallel processing has longer running time than the other?
Try your code in this way: matlabpool open local 2 tic spmd x=magic(100); y=magic(100); ...

11 years 前 | 0

已回答
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total a...

11 years 前 | 0

| 已接受

已回答
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total addition f...

11 years 前 | 0

已回答
how to browse an image?
To get a image from any location, try this: MY_IMAGE = uigetfile({'*.jpg','*.JPG','*.bmp','*.tif'}) % add any extension y...

11 years 前 | 0

已回答
How can I change the properties of the y-axes in a scatter3 figure?
Go to the property editor of your plot, you will find all you need. If you want to use commands, add the property and its value...

11 years 前 | 0

已回答
CALLING MULTIPLE GUI'S
First. GUIs have a property called 'Visibility'. You can check it out on the property inspector. When set to "off", the GUI is n...

11 years 前 | 1

已回答
selecting multiple files from folder directly
Firstly, if you use uigetdir, there is no need for files_wanted = dir('a1*1*.txt'). Use one or the other method to open the file...

11 years 前 | 0

已回答
selecting multiple files from folder directly
adapt the line to your need: files_wanted = dir('a1*1*.txt');

11 years 前 | 0

已回答
selecting multiple files from folder directly
Hello, this might be of help: % this creates a structure with information on every % file whose name starts with "a1_...

11 years 前 | 0

已回答
could you fix these codes?
You can try as well something like this I=imread(your_32x32_image_name); division = 8; % set according to yuor needs ...

11 years 前 | 0

加载更多