标签: cell

如何在matlab中将单元格转换为字符串

假设我有一个细胞

v =    'v'    [576.5818]    [3.0286]    [576.9270]

       'v'    [576.5953]    [3.1180]    [576.8716]

       'f'    [      56]    [    58]    [      52]

       'f'    [      56]    [    58]    [      52]
Run Code Online (Sandbox Code Playgroud)

我想使用每个元素的格式字符串将其转换为单元格数组:' %.5f'

我怎样才能做到这一点?我尝试了以下方法,但是我收到了一个错误:

f1 = @(x) sprintf('   %.5f',x);
cellfun(f1, num2cell(v),'UniformOutput', false) 
Run Code Online (Sandbox Code Playgroud)

我收到一个错误???

Error using ==> sprintf

Function is not defined for 'cell' inputs.

Error in ==> @(x)sprintf(' %.5f',x)

任何人都可以提前帮助我

string matlab cell

18
推荐指数
3
解决办法
8万
查看次数

GWT CellTable - 设置列宽

是否可以设置CellTableGWT 的列宽?

gwt cell width

17
推荐指数
2
解决办法
2万
查看次数

MATLAB:是否有可能在本机结构(单元格,结构等)上重载运算符?

我正在使用单元格管理我正在处理的一些东西中的数据.我希望能够做到这样的事情:

A = cellfun( @(X)( randn( 5,5 ) ), cell( 5,1 ), 'UniformOutput', 0 );
B = cellfun( @(X)( randn( 5,5 ) ), cell( 5,1 ), 'UniformOutput', 0 );
%#
%# Each of the following would fail if cell member dimensions
%# don't match up
%#
%# matrix sums for each cell entry
%# C = A + B;
C = cellfun( @(X,Y)( X + Y ), A, B, 'UniformOutput', 0 );
%#
%# direct/hadamard product
%# D = A …
Run Code Online (Sandbox Code Playgroud)

matlab arithmetic-expressions operator-overloading cell

17
推荐指数
1
解决办法
2717
查看次数

Fullcalendar:更改特定日期的颜色

我遇到了一个我上班的项目.我需要改变一些天的背景颜色.这是一个用户应该看到的日历,哪些日期可用,哪些日期不可用.我发现有一个名为"data-date"的属性,但我没有找到使用它的可能性.

有没有办法操纵特定日子的背景?

我认为必须有一种方法,因为显示当前日期的单元格也有另一种颜色.

jquery cell background-color fullcalendar

17
推荐指数
4
解决办法
5万
查看次数

Swift tableView单元集附件类型

class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
    @IBOutlet
    var tableView: UITableView
    var items: String[] = ["We", "Heart", "Swift"]

    override func viewDidLoad() {
        super.viewDidLoad()
        self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "myCell")
    }


    func tableView(tableView: UITableView!, numberOfRowsInSection section: Int) -> Int {
        return self.items.count;
    }

    func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {

        var cell:UITableViewCell = self.tableView.dequeueReusableCellWithIdentifier("myCell") as UITableViewCell

        cell.textLabel.text = self.items[indexPath.row]
        cell.accessoryType = UITableViewCellAccessoryType.DetailDisclosureButton
        cell.selectionStyle = UITableViewCellSelectionStyle.Blue
        tableView.separatorStyle = UITableViewCellSeparatorStyle.None
        return cell
    }

    func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) {
        println("You selected cell #\(indexPath.row)!")

    } …
Run Code Online (Sandbox Code Playgroud)

cell uitableview accessorytype swift

17
推荐指数
2
解决办法
5万
查看次数

如何使用VBA使Excel 2007中的单元格透明

我目前有:

Range("Z1").Interior.Color = RGB(255, 255, 255)
Run Code Online (Sandbox Code Playgroud)

但这消灭了细胞的边界.相反,我只想将范围内的单元格透明度设置为1.0. 文档似乎暗示它不存在(?).

谢谢!

excel transparency vba excel-2007 cell

16
推荐指数
1
解决办法
7万
查看次数

获取Windows窗体中TableLayoutPanel单元格的高度和宽度

在Windows窗体中使用TableLayoutPanel.我正在使用RowStyles和ColumnStyles,SizeType分别为AutoSize和Percent.我需要找出放置特定控件的单元格的绝对高度和宽度.

TableLayoutPanelCellPosition pos = tableLayoutPanel1.GetCellPosition(button1);
int height = (int)tableLayoutPanel1.RowStyles[pos.Row].Height;
int width = (int)tableLayoutPanel1.ColumnStyles[pos.Column].Width;
Run Code Online (Sandbox Code Playgroud)

上面,我的高度为0. RowStyle的SizeType为AutoSize.同样,我得到了33.33.ColumnStyle设置为SizeType为Percent,Size = 33.33.

我需要获得单元格的绝对大小(以像素为单位).

.net c# tablelayoutpanel cell winforms

16
推荐指数
1
解决办法
2万
查看次数

在iOS 8和swift中更改UITableViewCell字体

我正在尝试更改我的uitableviewcells的字体,

我目前正试图使用​​这个并没有成功:

cell.textLabel.font = [UIFont .preferredFontForTextStyle("Avenir")];
Run Code Online (Sandbox Code Playgroud)

现在我已经阅读了很多内容,似乎我应该使用它:

    cell.textLabel.font = [UIFont fontWithName: "Avenir" size:22];
Run Code Online (Sandbox Code Playgroud)

问题是在iOS 8中似乎不存在fontWithName

有任何想法吗??

谢谢

cell uitableview ios swift ios8

16
推荐指数
1
解决办法
1万
查看次数

使用Swift 3按下时动画单元格

我的问题很简单.我想在collectionView中为单元格设置动画.实际上,我想在单元格后面显示灰色背景并缩小内部图像.

它(几乎)与Pinterest相同:

在此输入图像描述

我曾经在按钮上编码动画,但我从来没有在单元格上做过.例如,如何将单元格链接到touchUpInside或TouchDown操作?

animation cell uicollectionview swift swift3

16
推荐指数
3
解决办法
1万
查看次数

如何删除Excel 2010单元格中的某些字符

在列AI中,有一个名称加载,如下所示

[约翰·史密斯]

我仍然希望他们在A但[]删除...

excel character cell excel-2010

15
推荐指数
2
解决办法
20万
查看次数